This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The Response.CodePage Property
The Response.Charset Property
The Response.CacheControl Property
The Response.Buffer Property
The Response.Write Method
The Response.Redirect Method
The Response.Flush Method
The Response.End Method
The Response.Clear Method
The Response.BinaryWrite Method
The Response.AppendToLog Method
The Response.AddHeader Method
The Response Object
The Request.TotalBytes Property
The Request.ServerVariables Property
The Request.QueryString Property
The Request.Form Property
The Request.Cookies Property
The Request.ClientCertification Property
The Request.BinaryRead Method
<< LAMP
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :8555

 

The Response.ContentType Property

Introduction

The Response.ContentType property can be used to specify the HTTP content type. The default value is text/html. If you specify an application as a content type then the content will be opened with the defined application, of course only when it is installed.

Example

<%

            Response.ContentType = "text/plain"

%>

This page uses the plain contenttype. Can you see the difference? It has used another font type.

Output

Other Types

Name:

Description:

application/msword

This type shows the content in MS Word.

application/vnd.ms-excel

This type shows the content in MS Excel.

application/vnd.ms-powerpoint

This type shows the content in MS Power Point.

application/pdf

This type shows the content in PDF.

application/x-zip-compressed

This type displays a file download dialog box.

application/x-msdownload

This type displays a file download dialog box.

image/GIF

This type shows the content as GIF.

image/JPEG

This type shows the content as JPEG.

text/HTML

This type shows the content as HTML.


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP