Back to Devexpress

ASPxLabel.AssociatedControlID Property

aspnet-devexpress-dot-web-dot-aspxlabel.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string AssociatedControlID { get; set; }
vb
<DefaultValue("")>
Public Overridable Property AssociatedControlID As String

Property Value

TypeDefaultDescription
StringString.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

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

See Also

Label

ASPxLabel Class

ASPxLabel Members

DevExpress.Web Namespace