HtmlForm.Action Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the action attribute of the HTML form.

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

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
Available since 2.0
Return to top
Show: