Click here to Skip to main content
15,845,785 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I have data bounded dropdownlist from data base and it contains huge data,
just want to know that using textbox and Search Button i want to find the data in dropDownList.

first I was using searchListExtender an ajax control, but it was killing my application memory.
Thanks7872 23-Sep-13 1:43am    
Textbox and button to search in dropdown list? I think you should redesign logic/application.
xibit89 23-Sep-13 1:47am    
why? I just want to type the data in the textbox and using Button want to find it in the dropDownList...
Thanks7872 23-Sep-13 1:50am    
you said there is huge data in dropdownlist i assume you have at least 100 items in it. Why not to use autocomplete extender? The reasons are, dropdownlist with huge data won't make sense. And searching should not be for 'dropdownlist'.
xibit89 23-Sep-13 1:51am    
i'll try it
ridoy 23-Sep-13 2:10am    

1 solution

Try this simple technique, using just basic html and javascript, no ajax needed either.

Use a Textbox, have all the items in your javascript in the page_load, and play with the data as you type the letters, the filtered results for the matching word will be displayed below the textbox, very fast. This is a pretty old article( 1.1 days), but this is exactly what you are looking for.

Google-Suggest Simulation using JavaScript in ASP.NET/ASP
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