I have a loop that is executed in C# on the server that can take a minute or two to execute.
I would like to provide a progress bar that shows the progress through the loop.
So, with each record processed (or some predefined number of records) I'd like to advance the progress bar by a certain amount.
The problem is that the the web progress bar is not refreshed until my process is completely done. Is there a way to refresh the progress bar while the process is executing?
Here is a sample that shows similar functionality - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.1/CLR4.0/html/WebProgressBar_Using_WebProgressBar_as_an_AJAX_Progress_Indicator.html. But it is not possible to update the WebProgressBar while executing of a method on the server.
If you have any other questions, please let me know.