473,385 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Please Wait Screen

I have a web site that basically builds and displays reports. Some of the
reports take a long time to build (up to 10 minutes). I'd like to display a
"Please Wait" screen while the report is being built. Does anyone know how
to do this?

Thanks,
John
Nov 18 '05 #1
4 2367
Build a small .NET user control that will run inside your browser on the
client workstation. It can use a timer to periodically poll the web server
to find out if the reports are done. Create a web service on the service to
answer the "Is the report ready?" question, and have the user control call
this web service whenever the timer goes off.

HTH

"John Martin" <go*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a web site that basically builds and displays reports. Some of the
reports take a long time to build (up to 10 minutes). I'd like to display a "Please Wait" screen while the report is being built. Does anyone know how
to do this?

Thanks,
John

Nov 18 '05 #2
John Martin wrote:
I have a web site that basically builds and displays reports. Some of the
reports take a long time to build (up to 10 minutes). I'd like to display a
"Please Wait" screen while the report is being built. Does anyone know how
to do this?

Thanks,
John


The basic premise most solutions use is to use a Session variable that
will hold a flag to tell you when the report-building process is done.
In your case, it could be the report itself, or just a boolean, that's
an arch. decision to be made based on how much traffic your site has, etc.

Then, what you do is spawn off a separate thread to do the processing,
meanwhile redirect your user to your 'wait page', setting a META tag to
tell it to auto-refresh every so many seconds:

<meta http-equiv="Refresh" content="10">

So every 10 sec it'll refresh itself, during which you check to see if
the Session variable is filled (meaning the report is ready). If so,
you redirect to your 'display report' page.

--
Craig Deelsnyder
Microsoft MVP - ASP.NET
Nov 18 '05 #3
Thanks to both John and Craig, I'll try your suggestions.

Thanks,
John

"Craig Deelsnyder" <cdeelsny@SPAM_BE_GONEyahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
John Martin wrote:
I have a web site that basically builds and displays reports. Some of the reports take a long time to build (up to 10 minutes). I'd like to display a "Please Wait" screen while the report is being built. Does anyone know how to do this?

Thanks,
John


The basic premise most solutions use is to use a Session variable that
will hold a flag to tell you when the report-building process is done.
In your case, it could be the report itself, or just a boolean, that's
an arch. decision to be made based on how much traffic your site has, etc.

Then, what you do is spawn off a separate thread to do the processing,
meanwhile redirect your user to your 'wait page', setting a META tag to
tell it to auto-refresh every so many seconds:

<meta http-equiv="Refresh" content="10">

So every 10 sec it'll refresh itself, during which you check to see if
the Session variable is filled (meaning the report is ready). If so,
you redirect to your 'display report' page.

--
Craig Deelsnyder
Microsoft MVP - ASP.NET

Nov 18 '05 #4
The simplest example I've seen for such a situation is this:
http://www.aspnetpro.com/NewsletterA...200308bm_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com


"John Martin" <go*******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a web site that basically builds and displays reports. Some of the
reports take a long time to build (up to 10 minutes). I'd like to display a "Please Wait" screen while the report is being built. Does anyone know how
to do this?

Thanks,
John

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pudibund | last post by:
Ok, I've spent nearly a week trying to sort what should be an easy task to accomplish but I'm totally flumoxed! I want to do something pretty simple... 1. display image1 2. wait until...
20
by: da Vinci | last post by:
Hello again. I have a question regaring pass-by-reference and multiple functions. This is an assignment that I have to use pass-by-reference for everything. First off, I made the following...
1
by: metsymani | last post by:
In my web application, I have a search screen coded in ASP.Net. The Search process takes lot of time. So, I need to show a wait page informing the user that "Search is in progress. Please wait" along...
3
by: Lucas Tam | last post by:
Does anyone have easy to use sample code to build a "Please wait... processing data screen?" I'm interested in something like Expedia's search page Thanks. -- Lucas Tam...
6
by: Jeremy Chapman | last post by:
I have a button on my page which when clicked redirects to another page. on the page load of the page that I've redirected to, there is a long query. What I want to do is with dhtml, display test...
5
by: Bonato Pierantonio | last post by:
Hi all, I need a suggestion.... I need to build an application in VB.NET where I want to place a "WAIT PLEASE" form during the long process of the application that disappera automatically when the...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
9
by: jodleren | last post by:
Hi I have never done this before... but I could use it now. How do I create a "please wait" page, which will "reload" once my real page is ready? I am talking of a waiting time of some 10-20...
1
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, I have a webpage designed with asp.net 2.0. Is there a way to display a "please wait" message to the screen horizontally centered and veritcally 20px from the VISIBLE top of the page,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.