Label Control

A Label control is used to display text. The Label control’s Text property contains the text string to be displayed by the label. Note that Text is the only Label control property that is not inherited from the WebControl class. The Label control has no events or methods that are not derived from WebControl.

You have already seen the Label control used in the previous code examples in this chapter. The Text and Font properties of the Label control can be set programmatically, as shown in Example 5-1 and Example 5-2, or declaratively, as demonstrated in Example 5-3 and Example 5-4.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.213.238