protected void clear() { txtdegbatch.Text = string.Empty; lblPopDegErr.Text = string.Empty; lbldegCode.Text = string.Empty; lblPopDegErr.Visible = false; chkGrade.Checked = false; importRadio.Checked = false; entryRadio.Checked = false; DegddlCourse.ClearSelection(); DegddlBranch.ClearSelection(); DegddlCourse.Enabled = true; DegddlBranch.Enabled = true; txtAcronym.Text = string.Empty; txtregcode.Text = string.Empty; txtNoSeats.Text = string.Empty; txtNoSeaction.Text = string.Empty; txtYerIntro.Text = string.Empty; txtSubDiv.Text = string.Empty; txtReg.Text = string.Empty; txtduration.Text = string.Empty; txtAccredition.Text = string.Empty; txtSeatSurrend.Text = string.Empty; chkNonsem.Checked = false; chkSurrendseat.Checked = false; txtSeatSurrend.Enabled = false; btnPopDeleteDeg.Visible = false; Btn_AddNewRow.Enabled = false; gview.DataSource = null; gview.DataBind(); }