Thread Sleep in c# -


ok. i'm calling external script [edit: web service] that's doing asynchronous task. takes 1 2 minutes complete.

in meantime want display user "please wait" message, since need make call check if previous task has been completed yet before continue.

using timers not solution. need user wait before continue.

so question have whether or not thread.sleep put entire web application sleep or 1 current ui?

i don't want ui other website visitors hang. i'm not sure how works in production environment.

i use iis 7 on windows 2008 r2

thanks

thread.sleep affect current thread - it's not want anyway.

you should return complete response web application - 1 starts javascript timer fire in few seconds, , make ajax call web app check whether task has completed. (you should include sort of "task id" in response server knows task check.)

if sleep before returning response, user won't see any message until sleeping has completed.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -