473,394 Members | 1,843 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,394 software developers and data experts.

ASP.NET Question - Wait Messages...

I am writing an ASP.NET application which runs a Crystal
Report and then displays the results with the Web Form
Viewer. (This works ok). However, since these reports
take a couple of minutes to run, I would like to display
a 'please wait' message on the browser until the report
is ready for viewing. I have attempted to use
Response.Write to send a message down to the browser, but
this prevents me from redirecting the browser since the
HTTP headers have already been sent. I have also tried
Server.Transfer which works but I can never see
the 'please wait message'. Basically, I am looking at a
blank web page until the report is done.

Any ideas would be greatly appreciated!

Bill H
Nov 18 '05 #1
2 2222
In a similar situation, I created an intermediate "please wait" page,
to be displayed between the page where the user selects the report,
and the page generating the report, with

<meta http-equiv="Refresh" content="1;URL=<% = RedirectUrl %>">

where RedirectUrl held a URL with enough querystring variables to
determine the report to display.

My situation is slightly different to yours though, because I was
exporting to PDF/XLS, and displaying in an application window, rather
than using the viewer. The problem you might have with this approach
is that the Refresh happens again if the user clicks on the back
button from the report. It's quick and easy though.

"bh*****@certegy.com" <an*******@discussions.microsoft.com> wrote in message news:<03****************************@phx.gbl>...
I am writing an ASP.NET application which runs a Crystal
Report and then displays the results with the Web Form
Viewer. (This works ok). However, since these reports
take a couple of minutes to run, I would like to display
a 'please wait' message on the browser until the report
is ready for viewing. I have attempted to use
Response.Write to send a message down to the browser, but
this prevents me from redirecting the browser since the
HTTP headers have already been sent. I have also tried
Server.Transfer which works but I can never see
the 'please wait message'. Basically, I am looking at a
blank web page until the report is done.

Any ideas would be greatly appreciated!

Bill H

Nov 18 '05 #2
Thanks, I will give it a shot. I appreciate the help!

Bill H
-----Original Message-----
In a similar situation, I created an intermediate "please wait" page,to be displayed between the page where the user selects the report,and the page generating the report, with

<meta http-equiv="Refresh" content="1;URL=<% = RedirectUrl %>">
where RedirectUrl held a URL with enough querystring variables todetermine the report to display.

My situation is slightly different to yours though, because I wasexporting to PDF/XLS, and displaying in an application window, ratherthan using the viewer. The problem you might have with this approachis that the Refresh happens again if the user clicks on the backbutton from the report. It's quick and easy though.

"bh*****@certegy.com"

<an*******@discussions.microsoft.com> wrote in message
news:<03****************************@phx.gbl>...
I am writing an ASP.NET application which runs a Crystal Report and then displays the results with the Web Form
Viewer. (This works ok). However, since these reports
take a couple of minutes to run, I would like to display a 'please wait' message on the browser until the report is ready for viewing. I have attempted to use
Response.Write to send a message down to the browser, but this prevents me from redirecting the browser since the HTTP headers have already been sent. I have also tried
Server.Transfer which works but I can never see
the 'please wait message'. Basically, I am looking at a blank web page until the report is done.

Any ideas would be greatly appreciated!

Bill H

.

Nov 18 '05 #3

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

Similar topics

11
by: Pelo GANDO | last post by:
Hi everybody, It's me again...Pelo, for an other beginner question... What the code should be in C++ to wait for a keyboard entry in order to execute the sequal of my program...
4
by: Big D | last post by:
I recently got a new system, and re-installed studio. It was working fine, but now whenever I start it I get a prompt that says: "Please wait while windows configures visual studio .net -...
3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
7
by: Dave Hardy | last post by:
I have thread t1 . It spawns thread t2. I want to wait in thread t1 until the execution of thread t2 in completed. Bu t I do not want it to be a blocking wait since I want thread t1 to be...
15
by: Snuyt | last post by:
Hello, I want the program to wait a few seconds between executing code. It should look something like this: public sub xx() ...code... wait(2) 'wait 2 seconds ...code...
2
by: Bill Nguyen | last post by:
below is the error message I received when about 2/3 of the process is done. Where in my code I sould look for? Thanks Bill --------- The CLR has been unable to transition from COM context...
0
by: NvrBst | last post by:
I want to send a bunch of keys to an external window using PostMessage. I send a "KEYDOWN" message (then have to wait for the program to produce the CHAR message) then send the "KEYUP" message. ...
12
by: info | last post by:
Hi All, I am trying to set the hourglass cursor inside a class that has nothing to do with MainForm class and I don't want to pass a reference to MainForm. How can I set the current cursor to...
40
by: =?Utf-8?B?Um9iZXJ0IEUuIEZsYWhlcnR5?= | last post by:
What is the C# command to wait for a specified period of time? I am writing a windows service that will process a file once it has beed created or changed. I'm using the fileSystemWatcher to...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.