Created
June 28, 2012 11:03
-
-
Save EdPitt/3010693 to your computer and use it in GitHub Desktop.
Blocking UI while loading Ajax UpdatePanel in ASP.NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//include the jquery.blockui.js plugin on your page first | |
<script type="text/javascript"> | |
Page = Sys.WebForms.PageRequestManager.getInstance(); | |
Page.add_beginRequest(OnBeginRequest); | |
Page.add_endRequest(endRequest); | |
function OnBeginRequest(sender, args) { | |
$.blockUI(); | |
} | |
function endRequest(sender, args) { | |
$.unblockUI(); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fantastically handy bit of code, that! :)