Wednesday, August 27, 2008

The Label Control[Common Web Server Controls]

The Label Control

1.The Label control displays text at a specific location on the Web page using the properties
that the control has been assigned. Use the Label control when server code changes the text or the properties. If you only need to display static text, use HTML or the Literal control instead of using a Label control. The Literal control also displays text and the text can be changed by server code, but the Literal control does not support
styles, themes, and skins.

2.Labels can be used as the caption of the TextBox or other controls in a situation where using the access key for the Label moves the focus to the control to the right of the Label.

No comments: