Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use 2 AutoCompleteExtender

Posted on 2009-06-28
2
Medium Priority
?
316 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 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

Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

721 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