摘要: 通过 global.asax 创建 HttpApplication 的事件处理程序在 Visual Studio 中创建的普通网站项目中的 Global.asax 如下所示:<%@ Application Language="C#" %><script runat="server">void Application_Start(object sender, EventArgs e){}void A... 阅读全文
posted @ 2012-12-22 04:28 Adming 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 处理 HttpApplication 的事件HttpApplication 提供了基于事件的扩展机制,允许程序员借助于处理管道中的事件进行处理过程扩展。由于 HttpApplication 对象是由 ASP.NET 基础架构来创建和维护的,那么,如何才能获取这个对象引用,以便于注册 HttpApplication 对象的事件处理,就是程序员首先要解决的问题。在 ASP.NET 中,提供了两种方式来... 阅读全文
posted @ 2012-12-22 03:35 Adming 阅读(493) 评论(0) 推荐(0) 编辑