Configure ASP.NET Websites to output XHTML to W3C Validator

Configure ASP.NET Websites to output XHTML to W3C Validator

November 12th, 2008 // 12:15 pm @ Amar

In my previous blog entry, I showed how to configure ASP.NET to output XHTML to the browsers. However, when the W3C Validator checks the page, ASP.NET does not know the W3C user agent and hence sends out non compliant code. The trick is in the w3cvalidator.browser file available on idunno.org. Just drop the file in your App_Browsers folder and ASP.NET will send out XHTML compliant code to the Validator.


Category : dotNet

Leave a Reply

Latest Posts

Testimonials

"Amar clearly has a thorough knowledge of Sharepoint, this knowledge, coupled with his professionalism and dedication made him a tremendous asset to the project. He was the key contributor to the later stages of the project delivery effort (the really difficult bit, long hours and hard work that puts huge demands on people), and I can state categorically that without his focussed dedication and hard work we would not have been able to meet the timescales imposed upon the project."

Tim Ellis , Sharepoint Project Manager , Royal Bank of Scotland

Subscribe Now