How to find Dropdown items?
hi i'm new to C#, please help.I need C# and javascript code for I have Dropdown list some file names are listed in dropdownlist Beside that there is a textbox, when i enter "Acfgf" in text box, file in Dropdownlist with Filename " Acfgf" should be highlighted with selection on client side , please help me..........
SenthilkumarPosted Apr 23, 2012, 2:40 AM
you can do it by javascript.
Step1: Fill the dropdown list in the page load
Step2: place the Textbox control and write the onkeyup event.
Step3: Call the javascript function for every character type in TextBox and we need to filter the data.Before that need to take the data from the drop down list and look for matching.
Step4: For all the further matching, the original data needs to be taken from the array.
Please go through this url, where it has the same example. You can download the code.
http://www.aspsnippets.com/Articles/Filter-and-Search-ASP.Net-DropDownList-items-using-JavaScript.aspx
SenthilkumarPosted Apr 23, 2012, 6:01 AM
I asked you to go through this link, which has the same examples like what you expected.
http://www.aspsnippets.com/Articles/Filter-and-Search-ASP.Net-DropDownList-items-using-JavaScript.aspx
Nitesh KejriwalPosted Apr 23, 2012, 2:30 AM