Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to show loading gif while gridview is loading data from database.....!!!!!!!!!!!!
Posted
Updated 22-Sep-13 19:41pm
v2

1 solution

You can use UpdateProgress control.

ASP.NET
<asp:updateprogress id="UProgressButton" dynamiclayout="true" runat="server" xmlns:asp="#unknown">
      <progresstemplate>
           <div id="imgdivLoading1" runat="server" class="loader">
                 <img alt="Progress" border="0" src="Images/loading_new.gif" />
           </div>
     </progresstemplate>
</asp:updateprogress>


Then use UpdatePanel for partial post back.

ASP.NET
<asp:updatepanel id="updDataList" runat="server" xmlns:asp="#unknown">
   <contenttemplate>
     <!-- Your Grid View -->
    </contenttemplate>
</asp:updatepanel>


Good luck.
 
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