1<div>
2 <asp:ScriptManager ID=”ScriptManager1″ runat=”server” /> <script type=”text/javascript” language=”javascript”>
3 Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
4 Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
5 function BeginRequestHandler(sender, args)
6 {
7 var elem = args.get_postBackElement();
8 ActivateAlertDiv(‘visible‘, ‘AlertDiv‘, elem.value + ‘ processing…‘);
9 }

10 function EndRequestHandler(sender, args)
11 {
12 ActivateAlertDiv(‘hidden‘, ‘AlertDiv‘, ”);
13 }

14 function ActivateAlertDiv(visstring, elem, msg)
15 {
16 var adiv = $get(elem);
17 adiv.style.visibility = visstring;
18 adiv.innerHTML = msg;
19 }

20
</script><asp:UpdatePanel ID=”UpdatePanel1″ UpdateMode=”Conditional” runat=”Server”>
21 <ContentTemplate>
22 <asp:Panel ID=”Panel1″ runat=”server” GroupingText=”Update Panel”>
23 Last update:
24 <%= DateTime.Now.ToString()%>.
25 <br />
26 <asp:Button runat=”server” ID=”Button1″ Text=”Process 1″ OnClick=”ProcessClick_Handler” />
27 <asp:Button runat=”server” ID=”Button2″ Text=”Process 2″ OnClick=”ProcessClick_Handler” />
28 </asp:Panel>
29 </ContentTemplate>
30