Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
how could i populate manual or static dropdown list in asp.net?
Posted
Comments
Richard C Bishop 27-Nov-12 14:39pm    
Are you asking how you get list items into a dropdownlist?

1 solution

Manual DropDown list Sample:

XML
<asp:DropDownList ID="ddlType" Width="200px" runat="server" >
                            <asp:ListItem>--Select One--</asp:ListItem>
                            <asp:ListItem>Yes</asp:ListItem>
                            <asp:ListItem>No</asp:ListItem>
                             </asp:DropDownList>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900