it seems to me, when OnReceiveMessage is called, the page already finished execution and the response was already sent back to the browserconsider to do the task in a separate thread and save the status in a session variable or other means, and have your page refresh periodically, if some condition is satisfied, then call redirect to other url, 参考
Boost Web Performance With Multithreading
http://www.fawcette.com/vsm/2002_11/magazine/features/chester/

解决方案 »

  1.   

    你要自动去调用.
    页面已到客户端了.要明白这个原理.WEB是无状态的.你要什么,只能重新请求页面.
      

  2.   

    上面两位都说到点子上了,我去看看saucer给的链接,我想要的就是在ASP.net中的multithread编程模式。我看asp。net中有一个timer的控件,怎么使用呢,在timer事件中能刷新网页吗?自动定时刷新网页有几种方法? 我看看链接后在给两位分阿。先谢谢了!