Esempio n. 1
0
        private void FillAcademicYear(string sAcademicYearID)
        {
            oDT = new DataTable();
            clsAcademicYear objAcadYear = new clsAcademicYear();

            oDT = objAcadYear.ListAcademicYear();
            ViewState["AcademicYear"] = oDT;
            oCommon = new clsCommon();
            oCommon.fillDropDown(ddlAcadYear, oDT, string.Empty, "Year", "pk_AcademicYear_ID", "---- Select ----");

            if (oCommon != null)
            {
                oCommon = null;
            }
            // if (!IsPostBack)

            SelectItem(ddlAcadYear, sAcademicYearID);
            //if (!string.IsNullOrEmpty(sAcademicYearID))
            //{
            //    //ddlAcadYear.ClearSelection();
            //    ListItem oLi = ddlAcadYear.Items.FindByValue(sAcademicYearID);
            //        if (oLi != null)
            //            oLi.Selected = true;
            //}
        }
Esempio n. 2
0
 private void FillAcademicYear()
 {
     using (oDt = new DataTable())
     {
         clsAcademicYear objAcadYear = new clsAcademicYear();
         oDt     = objAcadYear.ListAcademicYear();
         oCommon = new clsCommon();
         oCommon.fillDropDown(ddlAcademicYear, oDt, string.Empty, "Year", "pk_AcademicYear_ID", "---- Select ----");
         if (oCommon != null)
         {
             oCommon = null;
         }
     }
 }
Esempio n. 3
0
        private void FillAcademic_Year()
        {
            oDT = new DataTable();
            clsAcademicYear objAcadYear = new clsAcademicYear();

            oDT = objAcadYear.ListAcademicYear();
            ViewState["AcademicYear"] = oDT;
            oCommon = new clsCommon();
            oCommon.fillDropDown(ddlAcademicYear, oDT, string.Empty, "Year", "pk_AcademicYear_ID", "---- Select ----");

            if (oCommon != null)
            {
                oCommon = null;
            }
        }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //fill academic year
         dt = new DataTable();
         clsAcademicYear objAcadYear = new clsAcademicYear();
         dt = objAcadYear.ListAcademicYear();
         ViewState["AcademicYear"] = dt;
         oCommon = new clsCommon();
         oCommon.fillDropDown(ddlAcademicYr, dt, string.Empty, "Year", "pk_AcademicYear_ID", "---- Select ----");
         if (oCommon != null)
         {
             oCommon = null;
         }
     }
 }