asp.net.ph

Request.ContentType Property

System.Web Namespace   HttpRequest Class


Gets the MIME content type of the incoming request.

[ VB ]
Public ReadOnly Property ContentType As String

[ C# ]
public string ContentType {get;}

[ C++ ]
public: __property String* get_ContentType ( );

[ JScript ]
public function get ContentType ( ) : String;

Property Value

A string representing the MIME content type of the incoming request. For example, "text/html".

Example

The following example shows the simplest way to retrieve and display the value representing the content type of the incoming request to a string variable.

<%= Request.ContentType %>

 Show me 

See Also

HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph