Click here to Skip to main content
12,697,801 members (26,554 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
How to pass addtional parameters to AutoCompleteExtender's ServiceMethod?

I am trying to create common web service method for all the autocomplete textboxes in my web apps.

I want to pass the source table name,the key to be retrived, and any filtring criteria to the web method.

Any hints/suggestions are appreciated.
Posted 29-Dec-10 1:20am
Dalek Dave 12-Jan-11 7:39am
This is a test Comment, please ignore.
Sandeep Mewara 12-Jan-11 7:55am
This is my test comment after DD, please ignore this too.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Use Context Key Property of Auto complete Extender

UseContextKey="true" ContextKey="<%# Eval(ddlCostCentre.SelectedValue) %>"

and use contextkey value in service method
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

No you can't pass.
1. concatenate your parameters using a separator like # character or ~.
2. Then split it by that characater.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 2 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100