W3C Validator and the ViewState

Discussion in 'ASP.NET 2.0' started by wisemx, Mar 7, 2008.

  1. 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.
     
  2. 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
     

Share This Page