Link to home
Start Free TrialLog in
Avatar of athomas4219
athomas4219

asked on

Displaying progress with long running Page_Load method.

I have a screen that contains some process information, i.e. process date, a checkbox to save, and a button to submit. What I need is to disable the button, display an animated GIF progress bar, run some long running code (up to a few minutes), display the results in a table, and finally hide all the other things on the page (progress, controls, etc). I keep tryiing to do this through JavaScript, but it doesn't want to cooperate. I'm also finding that if I do this from code-behind the page with the results won't display until the long running process is completely finished, giving the appearance of a hung application.

Does anyone have any suggestions, code snippets, or websites to visit that can help with this situation?

Thanks!

P.S. This is ASP.NET, C#.
Avatar of raterus
raterus
Flag of United States of America image

Take a look at this method, it addresses most of your concerns.

http://www.aspnetpro.com/NewsletterArticle/2003/08/asp200308bm_l/asp200308bm_l.asp
ASKER CERTIFIED SOLUTION
Avatar of tusharashah
tusharashah

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of athomas4219
athomas4219

ASKER

I ended up using three panels, setting two of them not visible. I used a lot of JScript to show and hide these panels while the code is being run, and finally showing the last panel when the process is completed. It wasn't easy, but it works just fine and looks very good while running.

Thanks!