摘要
传统的Web应用程序采用系统默认的page页面实现HttpHandler接口,页面中控件的解析以及页面处理造成页面开销大,运行效率低。通过分析ASP.NET IIS服务器原理,提出基于Javasrcipt+AJAX+HttpHandler的开发模型,利用.ashx文件实现HttpHandler接口,从而免去了普通.aspx页面的控件解析以及页面处理的过程。通过将该模型运用于在线考试系统,实现了页面的局部刷新和数据差异传送,解决了在线考试中试卷加载速度和试卷定时保存的核心问题。
Traditional Web application,with default Web page,implements HttpHandler interface,the analysis of central component in the page and the page processing require lots of operation,thus resulting in low efficiency.By analyzing the principle of ASP.NET IIS server,Javasrcipt + AJAX + HttpHandler-based development model is proposed,and.Ashx files is employed to implement HttpHandler interface,thus eliminating the operation process mentioned above.With this model applied in the online examination system,asynchronous page update and data transfer,could be achieved.The practical test shows that this system is of high exam-paper loading rate and could solve the critical problem of timed exam-paper preservation.
出处
《通信技术》
2011年第4期149-151,共3页
Communications Technology
基金
2008年度石油工程计算机模拟技术重点实验室基金资助项目(编号:2008KJ10)