ContentType

The ContentType property specifies the HTTP content type for the response. If no ContentType is specified, the default comes from the content which is rendering.

Settings and Return Values

Sets or returns a String value.

Remarks

The ContentType string is usually formatted type/subtype where type is the general content category and subtype is the specific content type. For a full list of supported content types, see your Web browser documentation or the current HTTP specification.

Example

The following example sets the content type to JPEG image.

<% Response.ContentType = "image/jpeg" %>
 

The following examples set the ContentType property to other common values.

<% Response.ContentType = "text/html" %>
<% Response.ContentType = "image/GIF" %>
<% Response.ContentType = "text/plain" %>
Applies To

Response Object



©2001-2015 eMill. All trademarks property of their owners.