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/
Boost Web Performance With Multithreading
http://www.fawcette.com/vsm/2002_11/magazine/features/chester/
页面已到客户端了.要明白这个原理.WEB是无状态的.你要什么,只能重新请求页面.