Thanks for the reply. I watched the video you linked to, but this isn't what I need. My client-side script is already invoking the web service asynchronously, that part is working. What I need is to be able to handle this request on the web server side in an asynchronous manner as well.
Say I define my web service method something like this:
[WebMethod]
public void DoWork()
{
DoSomethingThatBlocksForAWhile();
}
I would like to be able to make a call from javascript that looks like:
var asyncResult = MyWebService.BeginDoWork();
WaitUntilDone( asyncResult ); // pseudocode
MyWebService.EndDoWork();
This pattern works when calling a web service from managed code (because both asynchronous and synchronous method signatures are generated when the web service proxy is created). But I can't figure out how to use the same asynchronous calling pattern when calling a web service from javascript. It seems that the script manager proxy JS code only has the synchronous entry points by default. Any way to get this to work?
Thanks! -Duff