HtmlForm.Action Property

 

Gets or sets the action attribute of the HTML form.

Namespace:   System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

member Action : string with get, set

Property Value

Type: System.String

The action attribute of the HTML form. The default value is Empty.

You use the Action property when you rewrite the URL of the original request but you want to retain the original URL for the action attribute of the HTML form. Set the Action property to the value of the URL that you want to retain.

.NET Framework
Available since 2.0
Return to top
Show: