This is, has been, an interesting problem to deal with. Developer fusion has a rewrite solution I thought was pretty slick: http://www.developerfusion.co.uk/show/4641/4/ Another thing that seems to help, on performance too, is to use Literal instead of Labels. ...And the W3C school has a recommendation for avoiding the viewstate problem all-together: http://www.w3schools.com/aspnet/aspnet_viewstate.asp
Hi, I have a ASP.NET 2.0 website written in C# which needs to validate against the W3C validator software. The problem is the VIEWSTATE field. The W3C validator doesn't like the underscores __ in the name/id attributesname="__VIEWSTATE" id="__VIEWSTATE"How do I overwrite these values? (and not effect the functionality of the ViewState which I assume references the name/id attributes)?Note: I have already started a thread on the official ASP.NET forums but have not had a response regarding it, but it would be best if you check that thread first so you know how far I've gotten with this currently and where I'm still having issues. The link is as follows...http://forums.asp.net/t/1222635.aspxMany thanks for any help you can provide.Kind regards,M.
Hi, Thanks for posting, your first link helped a lot! I've posted a official reply to the ASP.NET forums: http://forums.asp.net/p/1222635/2225063.aspx#2225063 Thanks again Kind regards, M. I am a web developer working in the South-East of England. My skill set includes: - ASP.NET 2.0 (C#) - Classic ASP (VBScript) - SQL Server 2005 - PHP - XML - XHTML - CSS - JavaScript - AJAX - AIR - Flex - Flash (ActionScript 2.0/3.0) - Photoshop - Illustrator - Fireworks