Solved

ASP.Net redirecting via a "Please Wait" page

Posted on 2014-10-13
4
327 Views
Last Modified: 2014-10-16
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
0
Comment
Question by:rpm
  • 2
4 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
No sarcasm intended:  Do you understand the statelessness of the web?
0
 
LVL 1

Author Comment

by:rpm
Comment Utility
Not sure what you mean there!

Richard
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
Your intermediate page never returns to the client and as far as the client is concerned, this intermediate page does not exist. You need to either redirect from Javascript on client side, or use partial rendering to render please wait message on the slow page before it completely renders itself.

http://encosia.com/boost-aspnet-performance-with-deferred-content-loading/
0
 
LVL 1

Author Closing Comment

by:rpm
Comment Utility
Thanks, very helpful!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now