Gets or sets the Method attribute for the form. This defines how a browser posts form data to the server for processing. The two common methods supported by all browsers are GET and POST.
[Visual Basic] Public Property Method As String [C#] public string Method {get; set;} [C++] public: __property String* get_Method(); public: __property void set_Method(String*); [JScript] public function get Method() : String; public function set Method(String);
The Method attribute setting for the form. The default value is POST.
Advanced Web developers can override the default value of this property and use the GET method instead.
CAUTION Since GET requests are limited in how much data they can include, using the GET method can cause the postback and state management capabilities provided by the Web Forms page framework to break.
HtmlForm Class | HtmlForm Members | System.Web.UI.HtmlControls Namespace