XHTML 1.1 is impossible with ASP.NET 2.0?

  • Thread starter Thread starter Cat
  • Start date Start date
C

Cat

I created a web site, and I thought I followed XHTML 1.1 rules. But
when I validated the pages, I got some error messages. I found that
those codes are automatically generated parts by ASP.NET.

There is no attribute "name".
<form name="form1" method="post" action="Default.aspx" id="form1">
And input is not allowed here

Since ASP.NET buttons should be placed in server side forms, I don't
know how to remove this error. So, what this comes down to is that it
is (normally) impossible to create XHTML 1.1 page with ASP.NET 2.0? I
tried to search the internet but all I found was to create a hacked
assembly and place it on the server. But this is impossible since I'm
not the administrator of my hosting provider's computer. Is there any
normal way to suppress the generation of name tag and hidden input
tag? Or should I not use XHTML 1.1 with ASP.NET 2.0?

Thank you.
 
there is no xhtml 1.1 browser, so some compromise is necessary. to
access the form the asp.net client code uses document.forms[name]
syntax, so a name attribute is required. if only uplevel support was
needed they could switch to document.getElementById, but the basic code
supports older browsers that do not support document.getElementByName.

xhtml 1.1 does support <input type="hidden">, so I don't know what your
trouble is.


-- bruce (sqlwork.com)
 
Back
Top