Solved

ASP.Net redirecting via a "Please Wait" page

Posted on 2014-10-13
4
363 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create an MVC5, Razor Widget 2 26
exporting html table data 4 28
VB.Net. Reading xml value 6 30
VB.net Adding a row to a DataGridView that has a checkbox column 5 24
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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