Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Use 2 AutoCompleteExtender

Posted on 2009-06-28
2
Medium Priority
?
317 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
2 Comments
 
LVL 12

Accepted Solution

by:
expertsoul earned 2000 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

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

926 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