Form.Method 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定用來送出表單的方法。 預設值是 post
。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。
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。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應