aspnet-devexpress-dot-web-dot-aspxlabel.md
Gets or sets the identifier for a server control with which the ASPxLabel control is associated.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public virtual string AssociatedControlID { get; set; }
<DefaultValue("")>
Public Overridable Property AssociatedControlID As String
| 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:ASPxLabel>
<dx:ASPxComboBox ID="ASPxComboBox1" runat="server">
</dx:ASPxComboBox>
See Also