WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: ASP.Net Viewstate

for

Number of posts in this thread: 2 (In chronological order)

From: reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
Date: Fri, Jan 28 2005 5:33AM
Subject: ASP.Net Viewstate
No previous message | Next message →

Just started working on a ASP.NET project and notice that they use a
form with a Viewstate input on every page - I gather its for caching
info.

After some small research semms that i should hide the viewstate input
in a hidden DIV, but was wondering if there were any other
accessibilty concerns or tips - the fact that each page is wrapped
inside a form...

In fact any Asp.Net accessibility articles/links would be of great
interest - we are using Visual Studio.

ben

From: Austin, Darrel
Date: Fri, Jan 28 2005 8:06AM
Subject: Re: ASP.Net Viewstate
← Previous message | No next message

> In fact any Asp.Net accessibility articles/links would be of great
> interest - we are using Visual Studio.

The current version of VS.net and ASP.net doesn't try too hard to worry
about things like accessibility and standards compliant markup. VS.net will
mangle your HTML and a lot of the built in .net controls (like datagrids)
don't, by default, produce very accessible table structures.

That said, you can work around most of these with some effort. Supposedly,
the new versions of both VS.net and ASP.net will be addressing a lot of
these issues.

I don't think the viewstate poses an accessibility issue, but it can cause
validation problems:

http://www.aspnetresources.com/articles/HttpFilters.aspx

In fact, the above site is all about .net and web standards (which, while
not directly about accessibility, goes a step in that direction)

-Darrel