469,945 Members | 2,383 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

Keeping a page from timing out when waiting for a long running process

Is it possible to keep some communication going between the browser and web
server going while waiting for a long running process to finish ?

We have one function on our app (ASP.NET / VB.NET) that does a long running
update to the database (takes upto 10 mins) and the browser will often time
out before it completes.

Ideally I'd like to send information back to the browser from the process,
but anything that stops the browser timing out would be good.

Thanks

Steve
Nov 19 '05 #1
2 3332
while you can turn buffering off, and send patial results, 10 minutes is a
long time. proxy servers may disconnect, etc. you should switch to running
the function with a background thread, and have the page poll for results.
google this newgroup for progress bars

-- bruce (sqlwork.com)

"Steve W" <Bu*********@community.nospam> wrote in message
news:OK**************@TK2MSFTNGP15.phx.gbl...
| Is it possible to keep some communication going between the browser and
web
| server going while waiting for a long running process to finish ?
|
| We have one function on our app (ASP.NET / VB.NET) that does a long
running
| update to the database (takes upto 10 mins) and the browser will often
time
| out before it completes.
|
| Ideally I'd like to send information back to the browser from the process,
| but anything that stops the browser timing out would be good.
|
| Thanks
|
| Steve
|
|
Nov 19 '05 #2
Thanks for Bruce's informative inputs.

Hi Steve,

As Bruce have mentioned, the general meams is to let the long run task
running at serverside( in a background thread ..) and the page response
return as normal. Then, we contantly post back to poll the result from
serverside. And here are some tech article discussing on such topic:

#How to show progress in the client browser for a long-running ASP.NET page
http://support.microsoft.com/?id=837375

#DESIGN PATTERNS: Asynchronous Wait State Pattern in ASP.NET
http://msdn.microsoft.com/msdnmag/is...tterns/default...
http://www.aspnetpro.com/NewsletterA...00308bm_l/asp2...
_l.asp

Hope also helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Quick Function | last post: by
18 posts views Thread by Alan Z. Scharf | last post: by
15 posts views Thread by Jay | last post: by
13 posts views Thread by Edwin Smith | last post: by
2 posts views Thread by Peter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.