Share via


HelperPage.IsPost Property

Gets a value that indicates whether the current request is a post (submitted using the HTTP POST verb).

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Shared ReadOnly Property IsPost As Boolean 
    Get
'Usage
Dim value As Boolean 

value = HelperPage.IsPost
public static bool IsPost { get; }
public:
static property bool IsPost {
    bool get ();
}
static member IsPost : bool
static function get IsPost () : boolean

Property Value

Type: System.Boolean
true if the HTTP verb is POST; otherwise, false.

Remarks

The first time a page is requested, the request is typically an HTTP GET operation and IsPost returns false.

See Also

Reference

HelperPage Class

System.Web.WebPages Namespace