[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 720
  • Last Modified:

asp.net

http://us.instantoffices.com/no-results.aspx?search=diamond+bar%2c+ca

Check out above url. If you type in city textbox, it will let you type or select. This is exactly what I need. Can you show me how to do that in asp.net/c#?

Thanks
0
Webboy2008
Asked:
Webboy2008
  • 2
  • 2
1 Solution
 
Maximus5684Commented:
How is the drop-down currently populated (the one you have now)? Is it databound or are the items added arbitrarily? Do you need the item that the user enters to be added to the drop-down or just entered for form submission?
0
 
Webboy2008Author Commented:
the data in the drop down will be from wcf.
yes, user should enter something for research.
0
 
Maximus5684Commented:
Other than replacing the DDL with a text box, there is nothing with just plain ASP.NET that can handle this. However, the ComboBox in the AJAX Control Toolkit seems like it is exactly what you're looking for. http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx
0
 
JP2011Commented:
Hi..
you can use data template.
step 1:
put TextBox in data template & give key name.
step 2:
write another data template,
in data template first take drop down box.
inside Drop Down Box put  ListBox & assign your data to the ListBox .
now you get one property like display member in Drop Down Box, give the key name to this property (Which you have given in step 1).
step 3 :
Do your search based on the TextBox's text.

Hope this is help full to you..
Thanks.
0
 
Webboy2008Author Commented:
need sample codes...
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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