通过


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。

适用于

另请参阅