Over a million developers have joined DZone.

Serving XHTML With Classic ASP

DZone's Guide to

Serving XHTML With Classic ASP

· ·
Free Resource
How to correctly serve XHTML with Classic ASP:

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


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}