请问谁有在ASP.NET1.x下实现页面异步调用的代码有的话请发到谢谢了大家了
解决方案 »
- 麻烦JS高手帮我看下这个问题,谢谢!
- 请问asp.net高手,这条语句怎么写??
- System.Data.OleDb.OleDbException: 语法错误 (操作符丢失) 在查询表达式 'ID='2'and username='abc'and score='尚未考试'' 中。
- 继.如何动态加载CSS样式
- 列前缀 'username' 与查询中所用的表名或别名不匹配。怎么回事?
- 如何用javascript在前台调用Page_Load事件
- 请问这个错误提示是什么原因造成的?
- 为什么用VS.NET新建的ASP.NET一定要使用虚拟目录?不使用可以吗?谢谢
- IIS重装之后不支持asp.net了,如何修复?
- 求解决方法。关于新闻和图片存放于不同表时遇到的问题
- ASP。NET中如何求和
- atlas中如何使用ViewState?
Asp.net1.1做这个很麻烦
Summary:
The trick here is to implement IHttpAsyncHandler in a page's codebehind class, prompting ASP.NET to process requests not by calling the page's IHttpHandler.ProcessRequest method, but by calling IHttpAsyncHandler.BeginProcessRequest instead. Your BeginProcessRequest implementation can then launch another thread. That thread calls base.ProcessRequest, causing the page to undergo its normal request-processing lifecycle (complete with events such as Load and Render) but on a non-threadpool thread. Meanwhile, BeginProcessRequest returns immediately after launching the new thread, allowing the thread that's executing BeginProcessRequest to return to the thread pool.
参考链接:
http://msdn.microsoft.com/msdnmag/issues/05/02/NETMatters/