Pages

Friday, 21 March 2014

Asp.Net Basic Controls - Label

Label Control:

  • Label controls provide an easy way to display text which can be changed from one execution of a page to the next. If you want to display a text that does not change, you use the literal text.

Asp code:
               <asp:Label ID="Label1" runat="server" Text="Your Name :"></asp:Label>
Property:
Property Description
Text Set Label text to display
Height Set height of label in px
Width Set width of label in px
ForeColor Set font color as your need
Font Set font style and attribute
BackColor Set label back ground color

Other Control :

Label TextBox Button HyperLink
CheckBox CheckBoxList RadioButton RadioButtonList
Image ImageButton ImageMap Calender
DropDownList ListBox FileUpload