sloppycode.net
ASP Reference



Response.ContentType = [string content type]

Enables you to specfy the content type for the page, for example 'Response.ContentType = "image/jpeg"'. This should be set before the '<html>' tag.

Common types include "text/plain", "image/jpeg", "image/gif".

ContentType can also be set to "Application", which enables you to set a subtype according to the application you want to use, such as

'Response.ContentType = "application/x-msexcel" ' for MS Excel and

'Response.ContentType = "application/vnd.ms-powerpoint" ' for MS Powerpoint.
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap





Buy on Amazon



Buy on Amazon



Buy on Amazon



Buy on Amazon