Link to home
Start Free TrialLog in
Avatar of rpm
rpmFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.Net redirecting via a "Please Wait" page

Hi,

I have a page which potentially contains a very slow SQL query which can take a minute or two to run.

Rather than redirecting directly to this page, I first redirect to a page called SearchWait.aspx which displays a simple "please wait" message. On this page is the following event:

  Protected Sub Page_SaveStateComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SaveStateComplete

    Response.Redirect("SearchRun.aspx?queryid=" & Request.QueryString("queryid"))

  End Sub

Where SearchRun.aspx is the potentially slow page.

When I use this the browser gets to SearchRun.aspx, which is presumably via SearchWait.aspx, but I never see the content of SearchWait.aspx

How can I fix this?

Thanks,

Richard
Avatar of kaufmed
kaufmed
Flag of United States of America image

No sarcasm intended:  Do you understand the statelessness of the web?
Avatar of rpm

ASKER

Not sure what you mean there!

Richard
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rpm

ASKER

Thanks, very helpful!