Hi All

I have a need for an asp.net page to make a call to a server which it did
not originate from when a button is clicked.

A simple call to pass 2-3 params and return a result. I am happy to use an
asynchronous model to do this.

I control both servers. I have been looking at Ajax and PageMethods (Ajax.Net
and Ajax Pro) and have even been looking at Calling a webservice from JS.

I need the client code for this to be as simple as possible as I am going
to have to generate it dynamically on the server side.

I looked at using pagemethods(Ajax.Net) but I realised that the page that
has to generate the calling code is not the page which willl be recieving
the call.

Should I call back to site 1 using pagemethods and then call out on the server
side to the Site2?

What is the single simplest way I can do this?

Thanks in advance

--
Rory

Re: Ajax, Webmethod, PageMethod (multiple versions) by Michael

Michael
Fri Jul 25 10:57:59 CDT 2008

Hello Rory,

not quite understood the following

RB> I realised that the page that has to generate the calling code is
RB> not the page which willl be recieving the call.

pagemethods allow you to call the server methods from client code.
You are using the same page to call the pagemethod and receive the result
back

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo