//protected override void OnInit(EventArgs e) //{ // this.Page.Theme = "Default"; // base.OnInit(e); //} protected void SaveErrorLog(Exception ex) { ErrorLog pageEx = new ErrorLog(User.Identity.Name, this.Request.RawUrl, ex); ErrorLogManager ErrManObj = new ErrorLogManager(); ErrManObj.SavePageExeption(pageEx); }
protected void SaveErrorLog(Exception ex) { ErrorLog pageEx = new ErrorLog("", this.Context.Request.RawUrl, ex); ErrorLogManager ErrManObj = new ErrorLogManager(); ErrManObj.SavePageExeption(pageEx); }
protected override void OnError(EventArgs e) { Exception curException = Server.GetLastError().GetBaseException(); ErrorLog errObj = new ErrorLog(User.Identity.Name, this.Request.RawUrl, curException); ErrorLogManager ErrManObj = new ErrorLogManager(); ErrManObj.SavePageExeption(errObj); base.OnError(e); //this.Server.ClearError(); }