How to get BeginRequest and EndRequest in UpdatePanel ? (in jQuery)
BeginRequest
EndRequest
UpdatePanel
function onBeginRequest() { //$.blockui; } function onEndRequest() { //$.unblockui; }
with(Sys.WebForms.PageRequestManager.getInstance() ) { add_beginRequest(onBeginRequest); add_endRequest(onEndRequest); } function onBeginRequest(sender, args) { $.blockUI(); } function onEndRequest(sender, args) {
You can capture these events By Sys.WebForms.PageRequestManager.getInstance () this.
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 });
Source: https://habr.com/ru/post/1343286/More articles:Why am I getting a memory leak when I just do setContentView (R.layout.somelayout)? - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1343282/how-do-i-extend-a-mercurial-repository-to-include-parent-folder&usg=ALkJrhiz2PoXK-lndmsrt67eiUQLigFccgHow to create a portableapps project - build-processCUDA finds the maximum value in the given array - cudaFAST ProtocolDownload and resize the image in Aspx - c #Game template for cycle - templatesCreate an SVN branch from an existing Git branch - gitcharacter pointers in C ++ - c ++How to download xcode4 from windows pc (with IDP acc) - windowsAll Articles