Labels

Friday, August 17, 2007

Response.ContentType

Response.ContentType

The ContentType property specifies the HTTP content type for the response. If no ContentType is specified, the default is text/HTML.

Few more are:

<% Response.ContentType = "text/HTML" %>

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

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

<% Response.ContentType = "text/plain" %>

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

<% Response.ContentType = "audio/MPEG" %>

<% Response.ContentType = "application/x-cdf" %> [Channel Definition Format]

ContentType

A string describing the content type. This string is usually formatted as type/subtype.

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 1.1 specification located at http://www.w3.org/Protocols/Specs.html and search for "content-type".

Thanks & Regards,

Arun Manglick || Tech Lead

No comments:

Post a Comment