public void Refresh()
 {
     txtCourseCode.Text  = "";
     txtCourseName.Text  = "";
     txtCredit.Text      = "";
     txtDescription.Text = "";
     DepartmentDropDownList.ClearSelection();
     SemestersDropDownList.ClearSelection();
 }
        public void GetSemesters()
        {
            SemestersDropDownList.DataSource     = _CourseManager.GetSemesters();
            SemestersDropDownList.DataTextField  = "SemesterName";
            SemestersDropDownList.DataValueField = "Id";
            SemestersDropDownList.DataBind();
            SemestersDropDownList.Items.Insert(0, new ListItem("Select Semesters", "0"));
            Courses _Course = new Courses();

            _Course.SemesterId = Convert.ToInt32(SemestersDropDownList.SelectedValue);
        }