System.Web Namespace HttpRequest Class
Gets the HTTP data transfer method ( such as GET, POST, or HEAD ) used by the client.
[ VB ]
Public ReadOnly Property HttpMethod As String
[ C# ]
public string HttpMethod {get;}
[ C++ ]
public: __property String* get_HttpMethod ( );
[ JScript ]
public function get HttpMethod ( ) : String;
The HTTP data transfer method used by the client.
The following example shows the simplest way to retrieve and display the HttpMethod for the current URL request.
<%= Request.HttpMethod %>
Show me
Request.RequestType HttpRequest Members