[EMAIL PROTECTED] wrote: > I have a requirement that purges a database...since this could take a > long time, the idea is to invoke Server-side asynchronous > behavior...now, while it is doing this we need to display progress on > the client...obviously this done using BeginMethodName and > EndMethodName...which when it returns it is on a different thread of > execution and I can't get the client to update...so, is it possible to > use Ajax.net asynchronously to call a webservice method "MethodName" > and just hang out until the service responds? If so, is there an > example?
What you want to do is spawn a new thread in the web service call that will drop the required data from the db and return from the webservice call with perhaps the threadid, then call another webservice function to poll to see if the thread is still active, or has stopped... If you just wait for it to return, as stated by the above poster, you will time out if the operation takes longer than 2 minutes. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info -~----------~----~----~----~------~----~------~--~---
