Sunday 7 April 2013

  • Basic Controls of Asp.Net

    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



  • 1 comments:

    1. superb but need more pratice to improve blog just look at my blog No More Barrier On Carrier or need guide do not hesitate just contact me.

      ReplyDelete

    Copyright @ 2013 Programming Languages.