Sunday, 21 December 2014

Basic controls of Asp.Net:-

Button:-


<asp:Button id="button1" Text="Press" runat="server" OnClick="submit"/>
Creates a standard button on the page 

Label:-


<asp:Label id="Label1" Text="Label" runat="server"/>
Creates a standard label on the page 

Textbox:-

<asp:TextBox id="txtbox" runat="server" /> 
Creates a standard text box 

Dropdown box:-
<asp:DropList id="list1" runat="server"> 
Creates a drop-down list   

List box:-

<asp:ListBox id="listbox" rows="4" runat="server"> 
Creates a basic list box  

Calender:-
<asp:Calendar runat="server" /> 
Creates a calendar

Panel:-


<asp:Panel id="Panel1" runat="server" backimageurl="url" horizontalalign="Center|Left|Right"/> 
Creates a Panel
Hyperlink:-

<asp:Hyperlink id="Hyperlink1" runat="server" Imageurl="url" Navigateurl="url to navigate" Target="_blank|_self"/> 
Creates a Hyperlink

Imagebutton:-

<asp:ImageButton id="imgbtn1" runat="server" imageurl="url" imagealign=''center/left/right"/> 
Creates a imagebutton

Radiobutton:-

<asp:RadioButton id="radio1" runat="server" autopostback='true/false" groupname="grpname" text="string"/> 
Creates a radiobutton

Checkbox:-

<asp:CheckBox id="chk1" runat="server" autopostback='true/false" checked="true/false" text="string"/> 
Creates a checkbox

0 comments:

Post a Comment

Subscribe to RSS Feed Follow me on Twitter!