Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have a dropdownlist for feild city
in that dropdownlist following features are i added :-
Barmer
Jaipur
Jodhpur
Bikaner

when i write B in dropdownlist then the cities whose names are start with B are come top of the dropdownlist like:-
Barmer
Bikaner
Jaipur
Jodhpur

so please give the dropdownlist code
Posted
Comments
Rahul.KumarSharma 2-Jul-12 6:57am    
You can use keyDown event.

Whats the point of posting it multiple times without making any effort whatsoever?
Here: c# code for dropdown list whose data are set in order..[^]

Please avoid it.
 
Share this answer
 
Hello Ritu,

Please go through the following URL:

Sorting Dropdown list in ASP.NET using C#[^]

Checked working fine.

Thanks
Ashish
 
Share this answer
 
Comments
Sandeep Mewara 2-Jul-12 12:27pm    
Is this really going to help here ?

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