protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); HttpException httpex = ex as HttpException; if (httpex != null && httpex.GetHttpCode() == (int)HttpStatusCode.NotFound) { Server.ClearError(); Response.Clear(); IHttpHandler handler = new AnalyticsHandler(); handler.ProcessRequest(Context); } else { //Logger.Write(ex.Message); } }
protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); HttpException httpex = ex as HttpException; if (httpex != null && httpex.GetHttpCode() == (int)HttpStatusCode.NotFound) { Server.ClearError(); Response.Clear(); IHttpHandler handler = new AnalyticsHandler(); handler.ProcessRequest(Context); } else { //Logger.Write(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { IHttpHandler handler = new AnalyticsHandler(); handler.ProcessRequest(this.Context); }
protected void Page_Load(object sender, EventArgs e) { IHttpHandler handler = new AnalyticsHandler(); handler.ProcessRequest(this.Context); }