Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 */
public String get_Name ()

/** @property */
public void set_Name (String value)

public function get Name () : String

public function set Name (value : 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, the get accessor returns the value of the UniqueID property. However, the set accessor does not assign a value to this property.

NoteNote

The set accessor does not assign a value to this property because the Name property must have the same value as the UniqueID property.

NoteNote

The name attribute is not an XHTML-compliant attribute and by default is not rendered by ASP.NET. For more information on configuring ASP.NET for non-XHTML rendering, see How to: Configure XHTML Rendering in ASP.NET Web Sites.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.