Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

'Declaration
Public Property Action As String

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

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2, 2.0 SP2

Reference

[M:System.Web.HttpContext.RewritePath(System.String]
[)]
Show:
© 2015 Microsoft