i am displaying countries in datalist from database. now i want search box. if i want to search a particular country in textbox and press enter, then that particular country should be visible in datalist.
how to do this with autocomplete extender. please kindly reply with some examples.
Why don;t you try
Combobox from AjaxControlToolkit. It offers the exact same behavior as per your requirement. The only difference would be it will display countries in dropdown rather than datalist.
Unless you want to search for countries matching a text, you could consider using a DropDownList with all Countries in it. Add an option for "All", and the user can easily pick the country.
Superguppie.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
venkatanatha...
Member
27 Points
43 Posts
Datalist autocomplete extender
Apr 07, 2012 09:11 AM|LINK
i am displaying countries in datalist from database. now i want search box. if i want to search a particular country in textbox and press enter, then that particular country should be visible in datalist. how to do this with autocomplete extender. please kindly reply with some examples.
venkat
niksv
Contributor
5925 Points
1115 Posts
Re: Datalist autocomplete extender
Apr 08, 2012 11:26 AM|LINK
Why don;t you try Combobox from AjaxControlToolkit. It offers the exact same behavior as per your requirement. The only difference would be it will display countries in dropdown rather than datalist.
superguppie
All-Star
48225 Points
8679 Posts
Re: Datalist autocomplete extender
Apr 10, 2012 10:26 AM|LINK
Unless you want to search for countries matching a text, you could consider using a DropDownList with all Countries in it. Add an option for "All", and the user can easily pick the country.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
pankaj_rayal
Member
320 Points
101 Posts
Re: Datalist autocomplete extender
Apr 10, 2012 11:39 AM|LINK
Better to use the Ajax ComboBox Control. For more info kindly visit on below url:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx