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