Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Examples: ASP Response Object ContentType Property

The following example sets the content type to non-HTML encoded text. This means the client will not interpret any HTML tags in the text:

<% Response.ContentType="text/plain"

The following example shows other common content types:

<% Response.ContentType = "text/html" %>
<% Response.ContentType = "image/GIF" %>
<% Response.ContentType = "image/JPEG" %>


ContentsPreviousNextIndex