Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

ASP ContentType Property

  • Last Updated : 31 Jul, 2020

The ASP ContentType Property is used to set the HTTP content type/subtype for the response header Object.  The default value is text/HTML



Parameter Values: It Contains the string value i.e contentType Which represents the content type. 

Example 1: This example illustrates the various type of content that asp pages have.



Example 2: This example code will produce a 2 X 4 Excel Spreadsheet in a browser if Excel is installed.




My Personal Notes arrow_drop_up
Recommended Articles
Page :