How can the WebProgressBar be used to display a progressive value of an index?
I have tried setting the wpb value inside an index loop but the ASP page never updates. The wpb control resides on an Ajax UpdatePanel.
Any suggestions?
Hi,
I have a long process with multiple stages at hand, and I want to set the value of WebProgressBar after each stage and refresh the control automatically. To simulate the situation, I change code in UPIndex.zip as follows:
protected void UpdProg_Click(object sender, EventArgs e) { double d = WebProgressBar1.Value;
for (double i = d; i < 10; i++) { WebProgressBar1.Value = i * 10; System.Threading.Thread.Sleep(1000); } }
But the control would not refresh as I supposed.Is there any solutions? thank you!
Valerie,
Thanks for the example!
How would you accomplish the same thing where the value was only known server side. Could you create a simple example where the server counts from 1 to 10000 and the Progress Bar updates client side?
Robin
I am checking to see if you were able to resolve your issue.
Please let me know if you have any other questions,
Thanks,
Valerie
I have put together a sample to show how to update the WebProgressBar from either the client or the server. Please review to see if this meets your criteria. Otherwise, please provide me with the following details:
Please explain what index you are talking about. Is this in reference to databinding to the Grid or are you trying to implement some other logic?
Can you provide me with more information on what index is and what you what to achieve with the WebProgressBar.
Please let me know if you have any questions.