protected void Page_Load(object sender, EventArgs e) { SessionBo.CheckSession(); DataSet dsReportServerConfig; //path = Server.MapPath(ConfigurationManager.AppSettings["xmlReportServer"].ToString()); advisorVo = (AdvisorVo)Session[SessionContents.AdvisorVo]; Customervo = (CustomerVo)Session[SessionContents.CustomerVo]; if (!Page.IsPostBack) { if (Request.QueryString["ReportCode"] != null) { fromDate = Convert.ToDateTime(Request.QueryString["fromDate"]); todate = Convert.ToDateTime(Request.QueryString["toDate"]); IsDummyAgent = Convert.ToBoolean(Request.QueryString["IsDummyAgent"]); agentCode = Request.QueryString["agentCode"]; if (agentCode == "") { agentCode = "0"; } SetReportType(Request.QueryString["ReportCode"]); } dsReportServerConfig = XMLBo.GetReportServerConfiguration(); reportServerConfigVo = GetReportServerVo(dsReportServerConfig, reportType); ShowReport(reportServerConfigVo, reportType); } }