Form.Method 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定提交表格的方法。 預設值為 post。 這個 API 已經過時了。 有關如何開發 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中。