Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autocomplete Combobox 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
Does anyone have a simple (I'm a novice) combo box for asp.net 2.0 that can do autocomplete?

This seems like a lot of work for a simple common task.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
What do you mean by autocomplete? Didn't any of the examples you were given in thread855-1319043 do what you wanted?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I'm sorry. Yes. Some of those were very helpful. I have about three different scerarios going.

In this case I have two dropdown list boxes. One is a client LastName and the other FirstName. The names come from a database table on a SQL Server.

The user needs to be able to start typing Smith and the application drops down the list and shows them all last names that start with S, then SM, then SMI.

After they pick a last name, the FirstName drop down box will get it's data from the same table but only show the first names of people that have the last name selected in the prior drop down. This two has to have the same "auto complete" behavior.

I have looked at some work arounds but many are hard to incorportate. Some are in C# and I am not too familiar with that.

Just curious if anyone had something simple. This seems to be much needed feature from what I can tell. Access and windows forms can do it. I see third party controls you can purchase so I know it's possible.

Thanks for responding.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
OK, as for the actual bit where you:
start typing Smith and the application drops down the list and shows them all last names that start with S, then SM, then SMI

This will have to be done via javascript and this can be easily amended from the example provided in the last post by mbiro.

As for:
After they pick a last name, the FirstName drop down box will get it's data from the same table but only show the first names of people that have the last name selected in the prior drop down
Then, you will either have to post the full page back to the server or use an AJAX request. If you are going to use an AJAX request, these controls are freely available at:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
I'm sorry ca8msm,

I looked back at the post and there were some more comments. Yes, I think the Ajax autocomplete would do the trick. I had already downloaded the Ajax tool box but this new autocomplete tool was not there.

Do I need to add it to my tool box? How do I do that? Thanks again for all your help. You are wayyy cool.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Do I need to add it to my tool box? How do I do that?
Yes you do. Instructions on how to do this can be found here:


Also note that in the last post I link to an autocomplete box whereas the above link is different and links to cascading DropDownLists, so make sure you check out both of those.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Sorry to keep bugging you. I did all that and have it installed on my machine. This new ajaxautocomplete does not show in my toolbox. How do I get it there?

I know it sounds like I'm from another planet [3eyes]. Thanks for your help.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
From the "setup" link above:

2 Right-click on the Toolbox and select "Add Tab", and add a tab called "AJAX Control Toolkit"
3 Inside that tab, right-click on the Toolbox and select "Choose Items..."
4 When the "Choose Toolbox Items" dialog appears, click the "Browse..." button. Navigate to the folder where you installed the ASP.NET AJAX Control Toolkit package. You will find a folder called "SampleWebSite", and under that another folder called "bin". Inside that folder, select "AjaxControlToolkit.dll" and click OK. Click OK again to close the Choose Items Dialog.
5 You can now use the included sample controls in your web sites!


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Sorry, I must be using the wrong version. I did that. I am looking at the list. I do not see ajaxAutocomplete tool mentioned here
I see CascadingDropDown, DropDownExtender and DropShadowExtender, but not the autocomplete. Even when I go to this website all I can download are the pages that run the code. I don't see the actual control itself.

Thanks again.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Sorry, I must be using the wrong version. I did that. I am looking at the list. I do not see ajaxAutocomplete tool mentioned here
You are getting confused. The autocomplete control is from here:


Whereas the CascadingDropDownlist is an "official" control from MS and it's community. This can be downloaded from here:




____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Yes. But where is the actual control itself. How do I add "this" control to my toolbox? There is no dll in this zip file that would have the actual control.

That is where I am lacking.

I wish I could give you another star for patience. I'm sure you want to bang me in the head to get me to understand. [hammer]

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
OK, I'm not sure what you have downloaded if you havent got a DLL in the zip folder (maybe you've just downloaded the installation and not the set of controls?). The controls should be downloaded from here:



and the zip file will have a DLL in the bin folder.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top