Solved

Displaying progress with long running Page_Load method.

Posted on 2004-10-18
3
243 Views
Last Modified: 2008-02-01
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#.
0
Comment
Question by:athomas4219
3 Comments
 
LVL 33

Expert Comment

by:raterus
ID: 12339600
Take a look at this method, it addresses most of your concerns.

http://www.aspnetpro.com/NewsletterArticle/2003/08/asp200308bm_l/asp200308bm_l.asp
0
 
LVL 18

Accepted Solution

by:
tusharashah earned 500 total points
ID: 12346606
Check out one simple method on ProgressBar over here:
http://www.kbalertz.com/Feedback_837375.aspx

-tushar
0
 

Author Comment

by:athomas4219
ID: 12440628
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!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now