HtmlForm.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the identifier name for the HtmlForm control.
public:
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.
Remarks
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.
Note
The name
attribute is not an XHTML-compliant attribute and is not rendered by ASP.NET regardless of the xhtmlConformance
setting.