Follow the steps:
Download and add the following .js files inside head tag.
1) jQuery v1.2.3 or later
2) jquery.blockUI.js
3) Paste the following two js functions within your script tag
*- function no.1 (you can use any loader image)
function BlockUI() {
$.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' });
}
*- function no.2
function UnBlockUI() {
$.unblockUI();
}
4) Make sure the
ToolkitScriptManager
is exists in master/content page.
5) on save button click call the 1st js function
BlockUI
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "BlockUI();", true);
6) After successful insert/update/delete/ any expression call the 2nd js function
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "UnBlockUI();", true);
Block UI Ref.
here