Progress bar in Asp.net

Sathya4260
Posted by Sathya4260 under ASP.NET AJAX category on | Points: 40 | Views : 19222
Hi,

Here is the simple code to show the progress bar in between file uploading, or data is retrieved from the database or any calculations

I am using Ajax Tool Kit

use the code as fallows:
<asp:UpdatePanel ID="update1" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<table width="100%" border="0" cellspacing="0" runat="server">
<tr >
<td>
<asp:UpdateProgress ID="progress" runat="server" AssociatedUpdatePanelID="update1">
<ProgressTemplate>
<asp:Image ID="imgLoading" runat="server" ImageUrl="~/Images/loadimg.gif" AlternateText="Loading..." />
</ProgressTemplate>
</asp:UpdateProgress>
<asp:Button ID="Updating" runat="server" Text="Save" OnClick="Updating_Click" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>

so select gif file as per your wish and just call the image in the progressTemplate, The work is complete...

Comments or Responses

Posted by: Poster on: 3/10/2011 Level:Starter | Status: [Member] | Points: 10
I guess your post would have looked much better if you would have kept your code in the CODE block. Try it and see if yourself.

Thanks
Posted by: Exisitservice1 on: 8/21/2019 Level:Starter | Status: [Member] | Points: 10
Where is the Updating_Click code???

Login to post response