开发者

ASP.NET Ajax simultaneous PageMethods

开发者 https://www.devze.com 2022-12-23 04:01 出处:网络
Can I call a PageMethod and then call another PageMethod before the first has finished? Are concurrent calls to PageM开发者_如何学运维ethods allowed?

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

精彩评论

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

关注公众号