Entry: XHTML compliancy and ASP.NET 3/22/2005

Some times you'll need for various reasons that your web page is XHTML compliant. However the HTML generated via ASP.NET doesn't validate too well against XHTML 1.0. When one uses <form runat="server"/>, the generated HTML will add a name attribute to the form tag. This is invalid XHTML. The hidden box named __VIEWSTATE needs to be enclosed in a <div> tag. And client-side script blocks should be using type="text/javascript" rather than language="javascript".

People have complaint this so often, some even come up with work arounds and some with their own XHTML Web Controls for ASP.NET

Thought the html generated via ASP.NET 2.0(whidbey) is expected to be XHTML compliant.

you may download a pdf about Validating XHTML within .NET
alternatively u can also  use SgmlReader 1.4  to convert html produced to xhtml


September 17, 2012   04:26 AM PDT
Excellent and decent post. Thank you for sharing, this information is useful to me. good quality.
Mulberry Outlet
September 27, 2012   02:15 AM PDT
Your blog is awesome , you should daily updated your blog.You seem to have a good understanding of these themes.When I entering your blog,I felt this.
Cheap Monster Beats Headphones
September 27, 2012   08:48 AM PDT
I am fascinated with all this. I love the article so much and you wrote it out wonderfully! It was an excellent read.
hermes outlet
October 9, 2012   11:55 AM PDT
Aha! It's so helpful to all readers, worth reading.
isabel marant sneakers
October 13, 2012   03:34 AM PDT
Great post. I was checking continuously thi&#1109; blog
and Im impressed! Extremely useful info particularly the last part :) I care for such info much. I was looking for this particular information for a long time. Thank you and good luck.
Isabel Marant Sneakers
October 24, 2012   07:45 AM PDT
The excellent sources of good information, I save this url to my favourites so that I can access the site whenever and wherever.
Isabel Marant Sneakers
November 1, 2012   01:55 AM PDT
Sharing is a great happiness! Every citizen and every family should play the advantages of collective learning, we open up, learn together, grow together!
Mulberry Outlet
November 3, 2012   04:00 AM PDT
We have come with the belief that we all have something to learn from each other and that there is no single message that emerges from this page.

Leave a Comment:


Homepage (optional)