System.Web.UI.HtmlControls.HtmlForm.Method Property

Gets or sets a value that indicates how a browser posts form data to the server for processing.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
public string Method { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to specify how the browser sends form data to the server for processing. The two common methods supported by all browsers are GET and POST.

Note:

You can override the default value of this property and use the GET method instead of POST. However, because GET requests are limited in how much data they can include, using the GET method can, in some cases, cause the postback and state management capabilities provided by the ASP.NET page framework to fail.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0