rpm
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(ByV al sender As Object, ByVal e As System.EventArgs) Handles Me.SaveStateComplete
Response.Redirect("SearchR un.aspx?qu eryid=" & Request.QueryString("query id"))
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
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(ByV
Response.Redirect("SearchR
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
No sarcasm intended: Do you understand the statelessness of the web?
ASKER
Not sure what you mean there!
Richard
Richard
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, very helpful!