ContentType Property

Applies To   See Also  

Indicates what type of content is being output to the page. (String Read/Write.)

Syntax

Response.ContentType = Value

Parts

Value

A string describing the content type. Please refer to your browser documentation or the World Wide Web Consortium for possible values.

Remarks

This method should be used before the BinaryWrite Method or Write Method if you are not writing plain text.

Example
Response.ContentType = "image/JPEG"
Response.BinaryWrite JPEGImage


Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com