public override void Init() { //逻辑对象赋值 bll = ErrorLogBll.GetInstence(); //表格对象赋值 grid = Grid1; }
protected void Application_Error(object sender, EventArgs e) { try { //收集服务器端页面发生的异常,并添加到数据库中 ErrorLogBll.GetInstence().Save(this.Context); this.Context.Response.Clear(); } catch { } }
/// <summary>读取数据</summary> public override void LoadData() { //设置排序 if (sortList == null) { Sort(null); } //绑定Grid表格 ErrorLogBll.GetInstence().BindGrid(Grid1, Grid1.PageIndex + 1, Grid1.PageSize, InquiryCondition(), sortList); }