ASP Response Object : ContentType Property

The ContentType property specifies the HTML content type for the response. The content type is a string of the form form/subform, where type is the general content category and subtype is the specific content. The default is text/HTML.

  <% Response.ContentType = "text/plain" %>
would set the HTTP content type header to:
  content-type: text/plain

A complete list of valid content types is registerd with the IANA (Internet Assigned Numbers Authority). The list can be accessed at:

Note: Non-standard and experimental types are not included in the list. Types that follow the format "x-typename" are experimental types.

Back to the ASP Response Object
Back to ASP Objects

All code is my own (and is asbestos free).

Log in or register to write something here or to contact authors.