DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Jeffrey has posted 20 posts at DZone. View Full User Profile

Serving XHTML With Classic ASP

03.09.2009
| 2906 views |
  • submit to reddit
        How to correctly serve XHTML with Classic ASP:

If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml") > 0 Then
     Response.ContentType = "application/xhtml+xml"
Else
     Response.ContentType = "text/html"
End If
Response.Charset = "utf-8"