Wednesday, 8 October 2014

How to Add DropDownList ListItem Add in Asp.Net C#

No comments    
categories: , ,
ADD DROPDOWNLIST  LISTITEM






  Html  Coding

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table><tr><td>
        <asp:Label ID="Label1" runat="server" Text="Country Name"></asp:Label>
        </td><td>
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem>Select  Country</asp:ListItem>
                <asp:ListItem>Australia</asp:ListItem>
                <asp:ListItem>Bhudan</asp:ListItem>
                <asp:ListItem>Canada</asp:ListItem>
                <asp:ListItem>Germany</asp:ListItem>
                <asp:ListItem>India</asp:ListItem>
                <asp:ListItem>USA</asp:ListItem>
                <asp:ListItem>New Zeland</asp:ListItem>
            </asp:DropDownList>
        </td></tr></table>
    </div>
    </form>
</body>



</html>


     
              

                                         




0 comments:

Post a Comment