HtmlForm.ClientID Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the control identifier that is generated by ASP.NET for the HtmlForm control

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

public override string ClientID { get; }

Property Value

Type: System.String

The control identifier generated by ASP.NET for the HtmlForm control.

To prevent naming conflicts when multiple instances of a control are rendered, ASP.NET automatically generates a unique ClientID value for each control on a page. For more information, see the Control.ClientID property.

.NET Framework
Available since 4.0
Return to top
Show: