HtmlForm::Name Property

 

Gets the identifier name for the HtmlForm control.

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

public:
property String^ Name {
	virtual String^ get();
	virtual void set(String^ value);
}

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: