Click here to Skip to main content
15,936,903 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Freinds,
I want to make dropdown control that should have a value like

a(1)
b(2)
c(40)
d(5).

So please guide me to make this asasp:-)
Posted
Updated 13-May-13 4:04am
v3
Comments
RelicV 13-May-13 10:12am    
FspFriends, this is not a place to spoon-feed you. Please provide your code and we'll help you
if you have any errors/issues.
Simon_Whale 13-May-13 10:12am    
do the values in the brackets mean anything?

1 solution

You have some options on how to create it so unless you are more specific here you go.

1) Normal HTML

HTML
<select name="DropDown" id="DropDown">
	<option value="a">1</option>
	<option value="b">2</option>
	<option value="c">40</option>
	<option value="d">5</option>
</select>

2) Asp.NET ListBox

ASP.NET
<asp:listbox id="DropDown" name="DropDown" runat="server">
	 <asp:listitem value="a">1</asp:listitem>
	 <asp:listitem value="b">2</asp:listitem>
	 <asp:listitem value="c">40</asp:listitem>
	 <asp:listitem value="d">5</asp:listitem>
 </asp:listbox>
 
Share this answer
 
v2

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