Solved

Displaying progress with long running Page_Load method.

Posted on 2004-10-18
3
248 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

810 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