Share via


Form.Action 屬性

定義

取得或設定表單所送到的 URL。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

public:
 property System::String ^ Action { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string Action { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Action : string with get, set
Public Property Action As String

屬性值

表單送出至的 URL。

屬性

備註

默認值是空字串 (“”) ,會導致回傳至包含目前窗體的頁面。 您可以覆寫預設值,以將窗體提交至不同的 URL。

注意

Action如果繼承屬性,控件會將Command窗體內容張貼至繼承的URL。

適用於

另請參閱