The ContentType specifies the HTTP content type that should be returned with the response. On most pages, this will be text/html.
SyntaxResponse.ContentType = "ContentType" |
The ContentType is a string that indicates the to browser the type of content that is being sent. It is usually in the form of type/subtype, where type is a general category such as text or image; and subtype is the specified format such as html, XML, gif or png. It is important that the content type is set correctly for the user's browser to able to show the content correctly. Perceptive Enterprise Search will automatically set the content type to text/html. The ContentType value is sent in the HTTP header as Content-Type. |
The following sets the Response's content type to be XML.
<% Response.ContentType = "text/xml" %> |