Share via


HtmlForm.Action 屬性

定義

取得或設定 HTML 表單的 action 屬性。

public:
 property System::String ^ Action { System::String ^ get(); void set(System::String ^ value); };
public string Action { get; set; }
member this.Action : string with get, set
Public Property Action As String

屬性值

HTML 表單的 action 屬性。 預設值是 Empty

備註

當您重寫原始要求的 URL 時,您會使用 Action 屬性,但您想要保留 HTML 表單動作屬性的原始 URL。 將 Action 屬性設定為您想要保留的 URL 值。

適用於

另請參閱