protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string userType = (string)Session["UserType"]; if (userType == null) { Response.Redirect("Login.aspx?category=User", true); } else { StoredProcedures sp = new StoredProcedures(); DataSet fiscalYears = sp.GetFiscalYears(); int lastRecord = fiscalYears.Tables[0].Rows.Count - 1; String mostRecentFY = fiscalYears.Tables[0].Rows[lastRecord][0].ToString(); ViewState["MostRecentFiscalYear"] = mostRecentFY; MakeProjections(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string userType = (string)Session["UserType"]; if (userType == null) { Response.Redirect("Login.aspx?category=User", true); } else { Session["supportUnit"] = null; StoredProcedures sp = new StoredProcedures(); DataSet fiscalYears = sp.GetFiscalYears(); FinancialYearDropDownList.DataSource = fiscalYears.Tables[0]; FinancialYearDropDownList.DataTextField = "fiscalYear"; FinancialYearDropDownList.DataValueField = "fiscalYear"; FinancialYearDropDownList.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string userType = (string)Session["UserType"]; if (userType == null) { Response.Redirect("Login.aspx?category=User", true); } else { Session["supportUnit"] = null; StoredProcedures sp = new StoredProcedures(); ProjectionPercentages percentages = new ProjectionPercentages(); DataSet fiscalYears = sp.GetFiscalYears(); int lastRecord = fiscalYears.Tables[0].Rows.Count - 1; String mostRecentFY = fiscalYears.Tables[0].Rows[lastRecord][0].ToString(); Session["MostRecentFY"] = mostRecentFY; DisplayRevenueExpenseSummaryReport(); } } }