FormMethod Enumeration
Specifies the type of submission for a form as a get or post request. This class cannot be inherited.
public sealed enum System.Web.UI.MobileControls.FormMethod : System.Enum
Remarks
The FormMethod enumeration represents how you will submit a form. A GET request, when the Method property of the form is set to Get, is limited in the amount of data it can post. Some types of postbacks might fail when using a GET request. The advantage of using a GET request is that all the parameters are specified as part of the URL, and you can cache or save the URL. The following ASP.NET code fragment shows how to set a form to submit as a GET request.
<mobile:Form
runat="server"
Method="Get"
Add specific form information here.
</mobile:Form>
Members
Member name | Description |
---|---|
Get | Uses a get request to submit a form. |
Post | Uses a post request to submit a form. |
Requirements
Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile
See Also
System.Web.UI.MobileControls Namespace