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#.
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#.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
Thanks!
http://www.aspnetpro.com/NewsletterArticle/2003/08/asp200308bm_l/asp200308bm_l.asp