Form.Action 属性

定义

获取或设置窗体提交到的 URL。Gets or sets the URL to which the form is submitted. 默认值为空字符串 ("")。The default value is an empty string (""). 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see 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

属性值

String

窗体提交到的 URL。The URL to which the form is submitted.

属性

注解

默认值为空字符串 ( "" ) ,导致回发到包含当前窗体的页面。The default value, an empty string (""), causes postbacks to the page containing the current form. 您可以重写默认值以将窗体提交到不同的 URL。You can override the default value to submit the form to a different URL.

备注

如果 Action 继承属性,则控件会将 Command 窗体内容发布到继承的 URL。If the Action property is inherited, the Command control posts form contents to the inherited URL.

适用于

另请参阅