Skip to main content
A newer version of this page is available. .
Tab

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.v19.1.dll

Declaration

[DefaultValue("")]
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.

Remarks

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.

Concept

Example

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