How to hide the page on load indicating in asp.net
<p>I am using ASP.NET 2.0 and AJAX extension tool. </p>

<p>I already created loading indicator on button submit.  When I will click the button, the loading indicator will show after redirecting to the next page.  But, I want to hide the page until processing has completed (after that redirect to next page).</p>

<p>I am using the following code:</p>

<pre><code> &lt;td style="width: 100px; height: 26px;"&gt;
                  &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
                &lt;/asp:ScriptManager&gt; 
                &lt;asp:UpdateProgress ID="UpdateProgress1" DynamicLayout="false" runat="server"&gt;
    &lt;ProgressTemplate&gt;
    &lt;img src="Images/loading.gif" alt="Images/loading.gif" style="z-index: 100; left: 21px; position: absolute; top: 64px" /&gt;

    &lt;/ProgressTemplate&gt;
    &lt;/asp:UpdateProgress&gt;
                 &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                    &lt;ContentTemplate&gt;
                    &lt;dx:ASPxButton ID="btnOk" ClientInstanceName="btnok" runat="server" Style="z-index: 100; left: 90px; position: absolute;
                    top: 108px" Text="OK" Width="61px" BackColor="Gainsboro" OnClick="btnOk_Click" AutoPostBack="False" &gt;
                    &lt;DisabledStyle&gt;
                        &lt;Border BorderColor="Teal" /&gt;
                    &lt;/DisabledStyle&gt;
                        &lt;ClientSideEvents Click="function(s, e) {
                    ShowloadingImage();
                        }" /&gt;


                &lt;/dx:ASPxButton&gt;
               &lt;/ContentTemplate&gt;
            &lt;/asp:UpdatePanel&gt;  
</code></pre>
