• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

DropDownList assistance

I'm developing a utility for my company in ASP.Net/VB.Net and I need the page to have auto-complete style DropDownList...  Unfortunately when you click on the DropDownList I've added on the webpage it doesn't allow typing entry to simplify search.  I'm loading the DD via a code based ADO-Teradata query into the DropDownList.  I've searched and found a few C# options and Jquery but they seem very involved for something I think should be simple.  Isn't there a control or something that should allow for ease of item location?  Thanks for any assistance!
2 Solutions
Chinmay PatelEnterprise ArchitectCommented:
There are two answers, if you are comfortable with ASP.net AJAX toolkit, you can check out this link:

if you want to build it from scratch(that's not tough either) you can follow this article and replace

    public string[] FindName(string prefixText, int count) 
        //return all records whose Title starts with the prefix input string         
        List<string> titleArList = new List<string>();         
        SqlDataReader drProducts = sqlProductProvider.GetNameList(prefixText);         
        while (drProducts.Read()) {            
            string strTemp = Convert.ToString(drProducts("Name")); 
        return titleArList.ToArray(); 

Open in new window

with appropriate code.

Actually a regular dropdown will respond to letters entered and as such have a form of autocomplete.

Just try in out, focus on a large dropdown in your browser (sopmething like a country list) and start typing some letters....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now