Referencing A Field On An Asp.net Page From A Web Service (asmx) Page
I'm using a Web Service page to make a textbox an 'auto complete' control. In order to do that, I'm using a web service. My code in the web service looks like this: public str
Solution 1:
Can't remember if you can do this, but try adding another param to your method.
publicstring[] ISGetCompletionList(string prefixText, string payerDate)
then in the ajax call
data: "{ 'prefixText': '" + request.term + "', 'payerDate': '" + formDate + "' }", etc.
or,
add the info to prefixText in the ajax call, similar to how the webmethod is combining data:
data: "{ 'prefixText': '" + request.term + "|" + formDate + "' }", etc
then split it in code behind.
Post a Comment for "Referencing A Field On An Asp.net Page From A Web Service (asmx) Page"