Last post Jul 23, 2019 05:21 PM by mgebhard
Jul 23, 2019 02:47 PM|rkrex|LINK
Hi Friends !
I was wondering is there a best practice to solve the issue of using Layout Tables when using a gridview in my asp.net web forms? It is my understanding that layout tables make your website inaccessible according to the ADA. Thanks !
Jul 23, 2019 03:08 PM|mgebhard|LINK
I was wondering is there a best practice to solve the issue of using Layout Tables when using a gridview in my asp.net web forms?
You are using a GridView for layout? How does that work?
It is my understanding that layout tables make your website inaccessible according to the ADA.
Not following ADA specs makes a web site inaccessible. Read the ADA specs for layout table recommendations if there are any.
Server controls are somewhat if a black box when it comes to HTML rendering. It is up to you to craft the HTML according to the ADA specs which might mean excluding server controls that are not ADA compliant and building a work around. You have total control
over the HTML.
Jul 23, 2019 04:38 PM|rkrex|LINK
Thank You for your Assistance. Do you know if the gridview is ADA compliant. I was not aware that we have control over the rendering of the gridviews HTML? Thanks !
Jul 23, 2019 05:21 PM|mgebhard|LINK
Do you know if the gridview is ADA compliant.
I don't know but a GridView renders as an HTML table and ADA specs certainly allow tables. I assume it depends on your GridView design.
I was not aware that we have control over the rendering of the gridviews HTML?
You misunderstand. It is up to you to read the ADA specs and verify the resulting HTML is correct. If you find a server control violates ADA specs then it is up to you, the programmer, to find another solution. Web forms allow total control over the HTML
rendering so it should not be a problem. You might not be able to use a favorite server control though.
Other frameworks like MVC and Razor Pages are designed to easily handle ADA specs as the frameworks do not make assumptions about how a table should be rendered. You, the programmer, get to write the HTML however you like. This is also a common complaint
when programmer move from ASP.NET Web Forms to MVC. Web forms developers get irritated when finding they must code a table using HTML a loop.