Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
when i click submit button in login page it will take time to show next page meanwhile i need to show loading image
Posted

See if below code helps you:

XML
<asp:UpdateProgress ID="uprgWorkRequest"  AssociatedUpdatePanelID="DeptPanel" runat="server">
 <ProgressTemplate>

<div id="IMGDIV1" align="center" valign="middle" runat="server" style="position: absolute;visibility:visible;vertical-align:middle;border-style:none;border-color:black;background-color:transparent;">

  <asp:Image ID="Image1" runat="server" ImageUrl="Images/loading.gif" />Loading...

   </div>

  </ProgressTemplate>

 </asp:UpdateProgress>



Other than this, please have a look at below link:
http://www.javascriptkit.com/script/script2/progressbar.shtml[^]
Javascript Progress Bar[^]
 
Share this answer
 
Comments
Manas Bhardwaj 22-Jun-12 7:21am    
Good ref +5
Vani Kulkarni 15-Nov-12 8:41am    
Thanks!
 
Share this answer
 
Comments
Prasad_Kulkarni 22-Jun-12 6:00am    
Good references My 5!
Sandeep Mewara 22-Jun-12 14:03pm    
Thanks.
Manas Bhardwaj 22-Jun-12 7:21am    
Good ref +5
Sandeep Mewara 22-Jun-12 14:03pm    
Thanks.
Add following code just below opening form tag in master page.

ASP.NET
<asp:updateprogress runat="server" id="upMainProgress" xmlns:asp="#unknown">
        <progresstemplate>
            <div id="load" class="n1 loadingProcess">
            </div>
            <div id="visibleDiv" class="loadingProcess">
                <img src="images/loading.gif" width="43">
                    height="44" alt="Please Wait..." class="loadingbg" />
                <br />
                <span style="color: #333;">Please Wait...</span>
            </img></div>
        </progresstemplate>
    </asp:updateprogress>
 
Share this answer
 
Add following code just below opening form tag in master page.

ASP.NET
<asp:updateprogress runat="server" id="upMainProgress" xmlns:asp="#unknown">
        <progresstemplate>
            <div id="load" class="n1 loadingProcess">
            </div>
            <div id="visibleDiv" class="loadingProcess">
                <img src="images/loading.gif" width="43">
                    height="44" alt="Please Wait..." class="loadingbg" />
                <br />
                <span style="color: #333;">Please Wait...</span>
            </img></div>
        </progresstemplate>
    </asp:updateprogress>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900