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)

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 HttpRequest.Form.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show: