Introduction to the Label ControlĀ 

The Label control displays text that the user cannot edit. If you want to display text that the user can edit, use the TextBox control.

ASP.NET Mobile Designer Label Control

Long text displayed in the Label control might not render well on small-screen devices. Therefore, it is best to use the Label control for short text. To display longer text, use the TextView control.

A Label control must be placed within a Form or Panel control, or inside a control's template on a mobile ASP.NET Web page. You can also drag it onto a mobile user control page. Set the text that the Label control displays using the Text property.

You can change the appearance of Label controls at design time by setting the Alignment, ForeColor, Font, StyleReference, and Wrapping properties. Set the BreakAfter property to false to prevent a line break after the label. Your application can programmatically alter properties at run time. In addition, your application can property values dynamically by using data binding.

To customize the appearance of the Label control for specific devices, apply device filters to the control. Device filters enable applications to override property values based on the capabilities of the target device.

See Also

Reference

How to: Add and Configure a Label Control
Label

Concepts

Overriding Properties
Introduction to the TextView Control
Introduction to the TextBox Control
Introduction to the Form Control
Introduction to the Panel Control

Other Resources

Using Device Filters