Display "waiting" pages while long running operations complete

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • Re: Display "waiting" pages while long running operations complete
    ... You could definitely achieve some thing like this using AJAX, ... server's busy working on their request. ... As it says in the title, I'm looking for a way to display a page while ... That "waiting" page would periodically poll to see if the main ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Display "waiting" pages while long running operations complete
    ... As it says in the title, I'm looking for a way to display a page while ... some way to push the current request onto some stack, ... That "waiting" page would periodically poll to see if the main ... I've tried it briefly with Response.Redirectto the waiting page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I request mail merge data?
    ... A better option would be to create a template with a combobox or listbox to display the data and from which you can select the record that you want and then click on a button to transfer that data into the document created from the template. ... and the following pages of fellow MVP Greg Maxey's website: ... how do I request the data from the spreadsheet I used as the data ...
    (microsoft.public.word.mailmerge.fields)
  • AJAX Issue
    ... I am using AJAX XMLhttprequest to request another page on form submit ... // Display results in a full window for server-side errors ... // If pop-up gets blocked, ...
    (comp.lang.javascript)
  • Re: To Change PS1 automatically
    ... It doesn't have provisions for updating the data display continously. ... A curses module for zsh is currently being ... The fact that the shell is capable of displaying colours and so on is ... waiting for input, it is just _waiting_. ...
    (comp.unix.programmer)