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"))
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?