FormMethod 列舉

定義

警告

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

將表單的送出類型指定為 GET 或 POST 要求。 此類別無法獲得繼承。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public enum class FormMethod
public enum FormMethod
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum FormMethod
type FormMethod = 
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type FormMethod = 
Public Enum FormMethod
繼承
FormMethod
屬性

欄位

Get 0

使用 GET 要求送出表單。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Post 1

使用 POST 要求送出表單。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

備註

列舉 FormMethod 表示您將如何提交表單。 當表單的 屬性設定Get為 時Method,GET 要求會受限於可以張貼的數據量。 使用 GET 要求時,某些類型的回傳可能會失敗。 使用 GET 要求的優點是,所有參數都會指定為 URL 的一部分,而且您可以快取或儲存 URL。

適用於