Form.Action 属性

定义

获取或设置窗体提交到的 URL。 默认值为空字符串 ("")。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 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。

适用于

另请参阅