Form.Method Property


Gets or sets the method used to submit the form. The default value is post. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

 property System::Web::UI::MobileControls::FormMethod Method { System::Web::UI::MobileControls::FormMethod get(); void set(System::Web::UI::MobileControls::FormMethod value); };
public System.Web.UI.MobileControls.FormMethod Method { get; set; }
member this.Method : System.Web.UI.MobileControls.FormMethod with get, set
Public Property Method As FormMethod

Property Value

The method used to submit the form.



A get request is limited in the amount of data it can post. Some types of postbacks might fail when using a get request. The advantage of a get request is that all the parameters are specified as part of the URL, and the URL can be cached or saved. The elements of a post request are contained within the HttpRequest.Form.

Applies to

See also