Solved

ASP.Net redirecting via a "Please Wait" page

Posted on 2014-10-13
4
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 75

Expert Comment

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

Author Comment

by:rpm
ID: 40378645
Not sure what you mean there!

Richard
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 40382243
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
ID: 40383828
Thanks, very helpful!
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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