Code for Progress Bar is display with percentage

Posted by sailulakshmid-21627 under ASP.NET on 4/29/2013 | Points: 10 | Views : 1096 | Status : [Member] | Replies : 2
how to represents the percentage with progress bar by using ajax controls




Responses

Posted by: Satyapriyanayak on: 4/29/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://devarchive.net/displaying_progress_bar_for_long_running_processes.aspx

If this post helps you mark it as answer
Thanks

sailulakshmid-21627, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: aswinialuri-19361 on: 4/29/2013 [Member] Starter | Points: 25

Up
0
Down
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<fieldset>
<legend>UpdatePanel</legend>
<asp:Label ID="Label1" runat="server" Text="Initial page rendered."></asp:Label><br />
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img src="ajax-loader (1).gif" alt="1" runat="server" />
</ProgressTemplate>
</asp:UpdateProgress>

</div>
In Code -Behind:
protected void Button1_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(3000);
Label1.Text = "Page refreshed at " +
DateTime.Now.ToString();
}

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

sailulakshmid-21627, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response