Gets or sets the identifier for a server control that the Label control is associated with.
<ThemeableAttribute(False)> _ <TypeConverterAttribute(GetType(AssociatedControlConverter))> _ Public Overridable Property AssociatedControlID As String
Dim instance As Label Dim value As String value = instance.AssociatedControlID instance.AssociatedControlID = value
[ThemeableAttribute(false)] [TypeConverterAttribute(typeof(AssociatedControlConverter))] public virtual string AssociatedControlID { get; set; }
[ThemeableAttribute(false)] [TypeConverterAttribute(typeof(AssociatedControlConverter))] public: virtual property String^ AssociatedControlID { String^ get (); void set (String^ value); }
public function get AssociatedControlID () : String public function set AssociatedControlID (value : String)
<asp:Label AssociatedControlID="String" />
Use the AssociatedControlID property to associate a Label control with another server control on a Web form. When a Label control is associated with another server control, its attributes can be used to extend the functionality of the associated control. You can use the Label control as a caption for another control, or you can set the tab index or hot key for an associated control.
When the AssociatedControlID property is set, the Label control renders as an HTML label element, with the for attribute set to the ID property of the associated control. You can set other attributes of the label element using the Label properties. For example, you can use the Text and AccessKey properties to provide the caption and hot key for an associated control.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98