NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HtmlForm.Method

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);

Property Value

The Method attribute setting for the form. The default value is POST.

Remarks

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.

See Also

HtmlForm Class | HtmlForm Members | System.Web.UI.HtmlControls Namespace