protected void Page_Load(object sender, EventArgs e) { ReportDataView data = (ReportDataView)HttpContext.Current.Session["ReportData"]; if (data != null) { AccountReportService accountService = new AccountReportService(); bool F = data.FilterEnabled; if (F == false)//ok { fillTable(accountService.getAccountNoFilter()); } else { fillTable(accountService.getAccountReportFilterByCriteria(data)); } } else { GridView3.DataSource = null; GridView3.DataBind(); } }
private void getData() { ReportDataView data = (ReportDataView)HttpContext.Current.Session["ReportData"]; if (data != null) { AccountReportService accountService = new AccountReportService(); bool F = data.FilterEnabled; if (F == false)//ok { fillTable(accountService.getAccountNoFilter()); } else { fillTable(accountService.getAccountReportFilterByCriteria(data)); } } else { GridView3.DataSource = null; GridView3.DataBind(); } }