HtmlForm::Method Property
.NET Framework (current version)
Gets or sets a value that indicates how a browser posts form data to the server for processing.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::String^A string that indicates how a browser posts form data to the server. The default value is POST.
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.
Caution |
|---|
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. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
