protected override void Page_Load(object sender, EventArgs e) { if (this.pIsPageLoaded) { return; } base.Page_Load(sender, e); this.ListFilter.EvFiltered += new UserControl.Control_Filter.DsFiltered(ListFilter_EvFiltered); if (!this.IsPostBack) { this.SetupPage(); } else { try { this.mObjID = (string)this.ViewState[CnsObjID]; } catch { } try { this.mObj_ExamReport = (ClsExamReport)this.Session[this.mObjID]; } catch { } try { this.mDt_Source = (DataTable)this.Session[this.mObjID + CnsDt_Source]; } catch { } } }
void SetupPage() { this.mObj_ExamReport = new ClsExamReport(); this.mObjID = this.Master.pCurrentUser.GetNewPageObjectID(); this.ViewState[CnsObjID] = this.mObjID; this.Session[this.mObjID] = this.mObj_ExamReport; this.mDt_Source = this.mObj_ExamReport.GetReport(); this.Session[this.mObjID + CnsDt_Source] = this.mDt_Source; this.BindGrid(); }