public void SelectAssignCourses()
    {
        BLLTeacherEnrollment objbll = new BLLTeacherEnrollment();

        objbll.Emp_code = user;
        List <BLLTeacherEnrollment> objlist = new List <BLLTeacherEnrollment>();

        objlist = objbll.Selectassigncoursebyteacher(objbll);
        if (objlist.Count > 0)
        {
            dgassigncourses.DataSource = objlist;
            dgassigncourses.DataBind();
        }
    }
    public void LoadCourses()
    {
        BLLTeacherEnrollment objbll = new BLLTeacherEnrollment();

        objbll.Emp_code = user;
        List <BLLTeacherEnrollment> objlist = new List <BLLTeacherEnrollment>();

        objlist = objbll.Selectassigncoursebyteacher(objbll);
        if (objlist.Count > 0)
        {
            cbcourses.DataSource = objlist;
            cbcourses.ValueField = "course_code";
            cbcourses.TextField  = "course";
            cbcourses.DataBind();
        }
    }