Start and end query in UpdatePanel using jQuery

How to get BeginRequest and EndRequest in UpdatePanel ? (in jQuery)

 function onBeginRequest() { //$.blockui; } function onEndRequest() { //$.unblockui; } 
+4
source share
3 answers
 with(Sys.WebForms.PageRequestManager.getInstance() ) { add_beginRequest(onBeginRequest); add_endRequest(onEndRequest); } function onBeginRequest(sender, args) { $.blockUI(); } function onEndRequest(sender, args) { 
+5
source

You can capture these events By Sys.WebForms.PageRequestManager.getInstance () this.

0
source

Use this code to avoid problems with the refresh panel of your page!

  $(document).ready(function () { // Put your code here }); var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_endRequest(function () { // Put your code here }); prm.add_beginRequest(function () { // Put your code here }); 
0
source

Source: https://habr.com/ru/post/1343286/


All Articles