re:
!> The reason is we shouldn't have any id starting with underscores on XHTML pages.
Who told you that ?
IDs starting with *double* underscores are perfectly acceptable in XHTML.
Check the validity of my ASP.NET FAQ's pages :
http://asp.net.do/faq/default.aspx
Here's the link to the W3C's validator :
http://validator.w3.org/check?uri=h...(detect+automatically)&doctype=Inline&group=0
Here's the response by the W3C's validator: "This Page Is Valid XHTML 1.0 Transitional!"
Now, check "View Source" for that page, and see that the page *does* include a "__VIEWSTATE" id :
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUKMTA1MDI3ODMwMWRkjOh6z8CUeDcuYjV3L6BQzzSZL7Q=" />
The key, of course, is that "__VIEWSTATE" has TWO underscores. <g>
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================