Section 4.2. Label Control

4.2. Label Control

You use a Label control to display text. The Label control's Text property contains the text string to be displayed. Text is the only Label control property that is not inherited from the Control or WebControl classes. The Label control has no events or methods that are not derived from Control or WebControl .

You have seen the Label control used in code examples in previous chapters. You can set the Text and Font properties of the Label control programmatically (as shown in Examples 4-1 and 4-3) or declaratively .



Programming ASP. NET
Programming ASP.NET 3.5
ISBN: 0596529562
EAN: 2147483647
Year: 2003
Pages: 173

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net