This all sounds like a gang up on Microsoft but on the contrary I would love to make use of the powerful features in ASP.Net but not at the expense of dropping standards and using deprecated techniques (ie table layouts) for the sake of convenience.Originally Posted by rbutler
Currently I'm working my way through the web controls to see which ones actually put out compliant code (with xhtml 1.0 strict!) and I noticed the first problem I have is with the HtmlForm control itself. It outputs the following which of course throws two errors when you try to validate it.
Cannot use the name attribute, and there was a problem with the input type.<form name="_ctl0" method="post" action="Default.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE" value="dDwtNjU0MzcyMTk1Ozs+FVQkdSgpNoUH5AYmm0r4ZnPpo4Y=" />
<strong>ASP.NET Web Controls are inserted here</strong>
I thought that was it, forget about it because most Web Controls sit inside an HtmlForm Control so I tried switching the DTD to xhtml 1.0 Transitional and it validated fine. So I'll give that a go and see how far I can get.
As for the rest of the web controls its going to be fun finding out. Please no-one tell me how the book ends. ;-)
GREAT book Zak!