View Single Post
  #4 (permalink)  
Old March 6th, 2009, 11:10 AM
Martin Honnen Martin Honnen is offline
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

If you want to use HTML 4.01 then in your web.config you need
[code
<system.web>
<!-- other elements here -->
<xhtmlConformance
mode="Legacy" />
</system.web>

[/code]
It is a bit confusing that the element says xhtmlConformance but then the mode="Legacy" disabled XHTML. Nevertheless according to http://msdn.microsoft.com/en-us/library/ms178159.aspx that setting should disable XHTML and output the markup the HTML way (e.g. <br> instead of <br />).
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog