?
Solved

DropDownList assistance

Posted on 2013-12-03
4
Medium Priority
?
361 Views
Last Modified: 2013-12-05
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!
0
Comment
Question by:EDW_Gideon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 27

Accepted Solution

by:
Chinmay Patel earned 1000 total points
ID: 39695089
There are two answers, if you are comfortable with ASP.net AJAX toolkit, you can check out this link:
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/autocomplete/autocomplete.aspx

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")); 
            titleArList.Add(strTemp); 
        }   
        return titleArList.ToArray(); 
    } 

Open in new window


with appropriate code.

http://www.c-sharpcorner.com/uploadfile/raj1979/auto-complete-in-Asp-Net-using-ajax/
0
 
LVL 28

Assisted Solution

by:sybe
sybe earned 1000 total points
ID: 39695153
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....
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question