Click here to Skip to main content
11,583,859 members (63,489 online)
Rate this: bad
good
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 0:20am
Comments
Dalek Dave at 12-Jan-11 7:39am
   
This is a test Comment, please ignore.
Sandeep Mewara at 12-Jan-11 7:55am
   
This is my test comment after DD, please ignore this too.
Rate this: bad
good
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
  Permalink  
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 440
1 Sergey Alexandrovich Kryukov 310
2 virusstorm 268
3 Richard Deeming 220
4 Dave Kreskowiak 200
0 OriginalGriff 1,623
1 Sergey Alexandrovich Kryukov 1,135
2 Abhinav S 701
3 Dave Kreskowiak 627
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 2 Mar 2012
Copyright © CodeProject, 1999-2015
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