[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Pivot Grid
   Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Collapse]Data Editors
    Editor List
    Main Features
   [Expand]Common Concepts
    Filter Control
    Validation Summary
   [Expand]Strongly-Typed Editor Types
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)


Label is a label extension that allows you to display text on a web page.

Expanded Implementation Details

Label is a LabelExtension class instance. The ExtensionsFactory.Label helper method allows you to add a Label extension to a view. This method's parameter provides access to the Label's settings (LabelSettings).

The ASPxClientLabel object is a Label's client counterpart.


Use the Overview - LabelFor extension to specify a label element's for attribute.

Expanded Declaration

The following code snippets illustrate how to add a Label to a view:

View code (ASPX):

View code (Razor):


The Partial View should contain only the extension's code.

The image below shows the result.

Expanded Main Features

  • Ability to Associate a Label to an Extension

    You can specify an extension with which the Label extension is associated. In this case, the label renders as an HTML label element, with the for attribute set to the Name property of the associated extension. Label attributes can be used to extend the functionality of the associated extension. You can define an associated extension with the LabelSettings.AssociatedControlName property.

  • Appearance Customization

    The Label appearance can be customized in different ways: by applying DevExpress built-in themes, by specifying CSS classes or by using different label appearance properties (for example, using the LabelSettings.Properties.Style property).

    See this topic to learn more about appearance customization using predefined built-in visual themes: Applying Themes.

  • Full-Featured Client-Side API

    The Label provides you with a comprehensive client-side API. This API is implemented using JavaScript and is exposed via the ASPxClientLabel object. The ASPxClientLabel object serves as a client-side equivalent of the Label extension.

Is this topic helpful?​​​​​​​