Name Property
Collapse the table of content
Expand the table of content

HtmlForm.Name Property

 

Gets the identifier name for the HtmlForm control.

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

public virtual string Name { get; set; }

Property Value

Type: System.String

A string that contains the identifier name for the HtmlForm.

Use the Name property to determine the unique identifier name for an HtmlForm control. In this implementation, getting this property returns the value of the UniqueID property. However, setting the property does not assign a value to the property. Setting the property does not assign a value to this property because the Name property must have the same value as the UniqueID property.

System_CAPS_noteNote

The name attribute is not an XHTML-compliant attribute and is not rendered by ASP.NET regardless of the xhtmlConformance setting.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft