开发者

ASP.NET Ajax simultaneous PageMethods

Can I call a PageMethod and then call another PageMethod before the first has finished? Are concurrent calls to PageM开发者_如何学运维ethods allowed?

Thanks

AJ


Absolutely.

Calling a PageMethod from ASP.NET AJAX or jQuery, or whatever kind of javascript you're using sends an Asynchronous HTTP request (the A in AJAX), and execution of other javascript on the page can continue. A call to an ASP PageMethod behaves no different from any other AJAX call.

You can make as many AJAX calls at once as you'd desire, and as you make the call, you will supply in some way a callback method containing javascript which will execute upon receiving a response from the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜