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中。

適用於

另請參閱