共用方式為


HtmlForm.Action 屬性

定義

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

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 表單的動作屬性。 預設值為 Empty

備註

當你重寫原始請求的 URL 時會使用這個 Action 屬性,但你想保留 HTML 表單的 action 屬性的原始 URL。 將屬性設定 Action 為你想保留的 URL 值。

適用於

另請參閱