Re: Display "waiting" pages while long running operations complete
- From: "Chris Fulstow" <chrisfulstow@xxxxxxxxxxx>
- Date: 5 Oct 2006 06:05:43 -0700
Jono
You could definitely achieve some thing like this using AJAX, check out
the ASP.NET AJAX Framework, in particular the UpdateProgress control.
http://atlas.asp.net/
http://atlas.asp.net/docs/Server/Microsoft.Web.UI/UpdateProgress/default.aspx
Jono wrote:
Thanks Chris, but that appears to be a way of delaying the page's
rendering until multiple asynchronous operations complete, rather than
returning some interim HTML to the client to let them know that the
server's busy working on their request.
I've heard a lot about AJAX recently and I wonder if this isn't a
technology that might help in this situation.
Regards,
Jono
Chris Fulstow wrote:
Check out the MSDN Magazine article about building asynchronous pages:
http://msdn.microsoft.com/msdnmag/issues/05/10/WickedCode/
Jono wrote:
Hi Everyone,
As it says in the title, I'm looking for a way to display a page while
long running operations are performed on the server. Ideally, I'd like
some way to push the current request onto some stack, where it would
continue to be processed asynchronously (most importantly preserving
things like view state, form post data, etc). In the interim, while the
main request is processed, a friendly page will be displayed to the
user. That "waiting" page would periodically poll to see if the main
request is ready, eventually popping the stack and displaying the
results of the long running operation.
I've tried it briefly with Response.Redirect(...) to the waiting page
and then back to the main page, when it's done, but I lose all the post
back data. I also tried Server.Transfer(...) but saw the same effects.
One thing that crossed my mind - which is probably not possible, but
that's why I'm asking you here - was to do some kind of fork with the
output stream so that the response of the main page was written into a
database row (or some other persistence mechanism) while a waiting page
was returned to the user. That waiting page would periodically check
the status of the main request, and if it was complete it would return
the results back to the client.
If anyone's got any bright ideas, and would like to share them, I'd
really appreciate it.
Thanks,
Jono
.
- Follow-Ups:
- References:
- Prev by Date: Visual Studio 2005 html-view does not recognize the generated html-tag of a custom control
- Next by Date: Add data to a generated SqlDatasource
- Previous by thread: Re: Display "waiting" pages while long running operations complete
- Next by thread: Re: Display "waiting" pages while long running operations complete
- Index(es):
Relevant Pages
|