ASP.NET Question - Wait Messages...

  • Thread starter Thread starter bhauver
  • Start date Start date
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
 
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.
 
Back
Top