Answered by:
ADA Accesibility and Layout tables

Question
-
User-305496339 posted
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 !
Tuesday, July 23, 2019 2:47 PM
Answers
-
User475983607 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 23, 2019 3:08 PM -
User475983607 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 23, 2019 5:21 PM
All replies
-
User475983607 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 23, 2019 3:08 PM -
User-305496339 posted
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 !
Tuesday, July 23, 2019 4:38 PM -
User475983607 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 23, 2019 5:21 PM