HtmlForm.Name Property


Gets the identifier name for the HtmlForm control.

 virtual property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public virtual string Name { get; set; }
member this.Name : string with get, set
Public Overridable Property Name As String

Property Value

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.


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

Applies to

See also