Form.Method Property

Gets or sets the method used to submit the form. The default value is post.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[BindableAttribute(true)] 
public:
property FormMethod Method {
	FormMethod get ();
	void set (FormMethod value);
}
/** @property */
public FormMethod get_Method ()

/** @property */
public void set_Method (FormMethod value)

public function get Method () : FormMethod

public function set Method (value : FormMethod)

Not applicable.

Property Value

The method used to submit the form.

A get request is limited in the amount of data it can post. Some types of postbacks might fail when using a get request. The advantage of a get request is that all the parameters are specified as part of the URL, and the URL can be cached or saved. The elements of a post request are contained within the System.Web.HttpRequest.Form.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: