public void Refresh()
 {
     txtTeacherName.Text    = "";
     txtTeacherAddress.Text = "";
     txtTeacherEmail.Text   = "";
     txtContactNo.Text      = "";
     txtCreditTaken.Text    = "";
     DepartmentDropDownList.ClearSelection();
     DesignationDropDownList.ClearSelection();
 }
        public void GetDesignations()
        {
            DesignationDropDownList.DataSource     = _TeachersManager.GetDesignations();
            DesignationDropDownList.DataTextField  = "DesignationName";
            DesignationDropDownList.DataValueField = "Id";
            DesignationDropDownList.DataBind();
            DesignationDropDownList.Items.Insert(0, new ListItem("Select Designation", "0"));
            Teachers _Teachers = new Teachers();

            _Teachers.DesignationId = Convert.ToInt32(DesignationDropDownList.SelectedValue);
        }