private void getdropdownData()
        {
            BLLStudent objBLLStudent = new BLLStudent();

            ViewBag.dpClass   = objBLLStudent.GetClassDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
            ViewBag.dpSection = objBLLStudent.GetClassSectionDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
        }
Example #2
0
        public ActionResult Search1()
        {
            BLLStudent objBLLStudent = new BLLStudent();

            ViewBag.dpClass   = objBLLStudent.GetClassDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
            ViewBag.dpSection = objBLLStudent.GetClassSectionDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));

            return(PartialView(customview("_SearchFormPartial", "Student")));
        }
Example #3
0
        //
        // GET: /Add/

        public void BindDropdownlist()
        {
            BLLStudent objBLLStudent = new BLLStudent();

            ViewBag.dpClass = objBLLStudent.GetClassDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));

            ViewBag.dpSection   = objBLLStudent.GetClassSectionDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
            ViewBag.dpFeeMonths = objBLLStudent.GetFeeMonthDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
        }
Example #4
0
        public ActionResult EditStudent(string studentID)
        {
            ViewModelStudent objModelStudent = new ViewModelStudent();

            if (!String.IsNullOrEmpty(studentID.Trim()))
            {
                BLLStudent objBLLStudent = new BLLStudent();

                objModelStudent = objBLLStudent.GetStudentInfoById(Convert.ToDecimal(studentID));

                ViewBag.dpClass   = objBLLStudent.GetClassDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
                ViewBag.dpSection = objBLLStudent.GetClassSectionDropdown(Convert.ToInt32(Session[DALVariables.SchoolAccountId]));
            }
            return(PartialView(customview("_EditFormStudent", "Student"), objModelStudent));
        }