Solved

Use 2 AutoCompleteExtender

Posted on 2009-06-28
2
300 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now