Solved

Use 2 AutoCompleteExtender

Posted on 2009-06-28
2
312 Views
Last Modified: 2012-06-27
Hi,
I use 2 AutoCompleteExtenders.
first - i get all cities.
second - i need to get all the streets in the selected city.
How can i pass to the second WebMethod (maybe with contextKey? How?)
the name of the city (its all client side...)?

public string[] GetStreets(string prefixText, int count)

Thanks
0
Comment
Question by:udir
[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
2 Comments
 
LVL 12

Accepted Solution

by:
expertsoul earned 500 total points
ID: 24732205
Yes you can use selected city as contextKey.

You need to specify UseContextKey="true" and then you can specify ContextKey from code behind once city is selected.

Use OnTextChanged event of City textbox to set contextkey. Also you can use AutoExtender as below to set both values together.

AutoExt.bmp
0
 
LVL 1

Author Comment

by:udir
ID: 24733821
OK thanks a lot
0

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.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

628 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