/// <summary> /// PageLoad Event Handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { try { Response.Expires = -1; if (Session["UserId"] != null && Session["CompanyID"] != null && Session["UserName"] != null) { UserSession objUserSession = new UserSession(); objUserSession.InsertSession(Session["UserId"].ToString(), Session["CompanyID"].ToString(), Session["UserName"].ToString()); // Fill Authorized branches in Session SalesReportUtils salesReport = new SalesReportUtils(); salesReport.FillBranchesAndChainSession(Session["UserID"].ToString()); } else if (Session["SessionID"] == null) { HttpContext.Current.Response.Redirect(PFC.Intranet.Global.IntranetSiteURL + "/SystemFrameSet/SessionOut.aspx"); } } catch (Exception ex) { throw; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SalesReportUtils salesReport = new SalesReportUtils(); //salesReport.FillBranchesAndChainSession(Session["UserID"].ToString()); } }