Solved

Use 2 AutoCompleteExtender

Posted on 2009-06-28
2
298 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
Comment Utility
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
Comment Utility
OK thanks a lot
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XML to SQL Table using c# 5 44
String manipulation 15 48
Format column on datatable 7 13
XML & .net 5 14
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

10 Experts available now in Live!

Get 1:1 Help Now