Skip to main content

ASPxLabel.AssociatedControlID Property

Gets or sets the identifier for a server control with which the ASPxLabel control is associated.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public virtual string AssociatedControlID { get; set; }

Property Value

Type Default Description
String String.Empty

A string value corresponding to a server control’s ID property.


Use the AssociatedControlID property to associate a control with the Label control. On a web page, a browser renders the label as an HTML label element. The label’s “for” attribute is set to the associated control’s ID property.



<dx:ASPxLabel ID="ASPxLabel1" runat="server" AssociatedControlID="ASPxComboBox1" Text="ASPxLabel">
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server">
See Also