using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace CY.Application { /// /// 应用程序级请求处理类 /// public class CYHttpModule : IHttpModule { #region IHttpModule 成员 public void Dispose() { throw new NotImplementedException(); } /// /// 连接初始化处理 /// /// public void Init(HttpApplication context) { context.BeginRequest += new EventHandler(this.ReUrl_BeginRequest); context.EndRequest += new EventHandler(this.ReUrl_EndRequest); } /// /// 开始请求处理 /// /// /// private void ReUrl_BeginRequest(object sender, EventArgs e) { } /// /// 结束请求处理 /// /// /// private void ReUrl_EndRequest(object sender, EventArgs e) { } #endregion /// /// 应用程序级错误处理 /// /// /// public void Application_OnError(object sender, EventArgs e) { //HttpApplication application = (HttpApplication)sender; //HttpContext context = application.Context; //context.Response.Write(""); //context.Response.Write("系统错误:
"); //context.Response.Write(""); //context.Response.Write(""); //context.Response.End(); } } }