Exemple #1
0
        protected void PopulateDifferentialRevenue()
        {
            string fiscalYear = (string)ViewState["MostRecentFiscalYear"];
            DataSet ds;

            if (ViewState["DifferentialRevenue"] != null)
            {
                ds = (DataSet)ViewState["DifferentialRevenue"];
            }
            else
            {
                StoredProcedures sp = new StoredProcedures();

                ds = sp.GetDifferentialRevenue(fiscalYear);

                ViewState["DifferentialRevenue"] = ds;
            }

            DifferentialRevenueNumbStudentsTextBox.Text = ds.Tables[0].Rows[1][1].ToString();
            DifferentialRevenueUndergradRateTextBox.Text = ds.Tables[0].Rows[1][2].ToString();

            DifferentialRevenueGradCHGTextBox.Text = ds.Tables[0].Rows[0][1].ToString();
            DifferentialRevenueGradRateTextBox.Text = ds.Tables[0].Rows[0][2].ToString();
        }