Easy Tutorial
❮ Met Delete File Prop Pics ❯

ASP ContentType Property



The ContentType property sets the HTTP content type for the response object.

Syntax

Parameter Description
contenttype A string describing the content type. For a complete list of content types, refer to your browser documentation or the HTTP specification.

Example

If the ASP page does not set the ContentType property, the default content-type header is as follows:

Some other commonly used ContentType values:

This example will open an Excel spreadsheet in the browser (if the user has Excel installed):


❮ Met Delete File Prop Pics ❯