public void GetAllDepartment() { DepartmentDropDownList.DataSource = _EnrollCourseManager.GetAllDepartment(); DepartmentDropDownList.DataTextField = "DeptCode"; DepartmentDropDownList.DataValueField = "Id"; DepartmentDropDownList.DataBind(); DepartmentDropDownList.Items.Insert(0, new ListItem("Select Department", "0")); }