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;
A string representing the MIME content type of the incoming request. For example, "text/html".
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
HttpRequest Members