Form.Method Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
property System::Web::UI::MobileControls::FormMethod Method { System::Web::UI::MobileControls::FormMethod get(); void set(System::Web::UI::MobileControls::FormMethod value); };
[System.ComponentModel.Bindable(true)]
public System.Web.UI.MobileControls.FormMethod Method { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Method : System.Web.UI.MobileControls.FormMethod with get, set
Public Property Method As FormMethod
The method used to submit the form.
- Attributes
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.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: