'Loading' web page for async call

Posted by Sieg on Stack Overflow See other posts from Stack Overflow or by Sieg
Published on 2010-05-13T21:57:29Z Indexed on 2010/05/13 22:14 UTC
Read the original article Hit count: 131

Filed under:
|
|

I have a simple web page in ASP.NET / C#. Currently to fully render the data I require calling a block of code that runs on background threads and can take multiple minutes to complete. I've got it to the point (using the async attribute on the page declaration) to execute and return fine with the html once it's done. What I'd like it to do is allow me to return immediately with a 'loading page' of some sort and then have that page be updated when the background work has been completed. Right now I get nothing on the page while the background work is being processed. Any ideas on the best way or clever way to do that would greatly be appreciated!

Thanks,

Sieg

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET