-
XHTML from asp.net ?
hi all!
i understand that asp.net pumps XHTML to the browser and its the standerd from w3c. but when i am trying to validate the aspx page with w3c then its giving me message that "not a valid page" how do i make the page a valid XHTML.
can any one clarify me in this regard
thanks
-
is there a way i can get the right xhtml by controlling asp.net or codebehind or any other settings.
??
-
Actually ASP.NET only pumps out older HTML 4.01 I believe. If you want to pump out XHTML, you will need top make your own web control's that push out tags that conform to the XHTML standard.
-
One of the bigger problems with ASP.NET and XHTML is that ASP.NET creates form tags with both the name="" and id="" attributes, while the newest XHTML specification does not allow name anymore. XHTML 1.0 Transitional seems to work fine though. If anyone knows a way to stop ASP.NET from generating the name attribute, I'd like to hear it :)