Kirk Evans Blog

.NET From a Markup Perspective


I decided that the new site I am developing should be checked to conform to the W3C CSS and XHTML recommendations.  So, I created a few pages in ASP.NET, pulled up the HTML validator before publishing, and…

This page is not Valid XHTML 1.0 Strict!

A quick Google search yielded a very well-laid out article on creating XHTML from ASP.NET, by Kevin Brown.  It uses a similar approach to Paul Wilson’s Page Template Generator, creating a new custom base class for the page to gain control of the rendering process.