Form.Method 属性

定义

获取或设置用于提交表单的方法。 默认值为 post。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 property System::Web::UI::MobileControls::FormMethod Method { System::Web::UI::MobileControls::FormMethod get(); void set(System::Web::UI::MobileControls::FormMethod value); };
[System.ComponentModel.Bindable(true)]
public System.Web.UI.MobileControls.FormMethod Method { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Method : System.Web.UI.MobileControls.FormMethod with get, set
Public Property Method As FormMethod

属性值

用于提交表单的方法。

属性

注解

get请求的发布量有限。 使用 get 请求时,某些类型的回发可能会失败。 请求的优点 get 是,所有参数都指定为 URL 的一部分,URL 可以缓存或保存。 请求的 post 元素包含在内 HttpRequest.Form

适用于

另请参阅