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