ASP.NET Question - Wait Messages...

B

bhauver

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
 
M

Mel Freeman

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.
 
B

bhauver

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top