protected void ResetFields() { NumberChoice.Text = ""; ChoiceList.ClearSelection(); //ChoiceList.SelectedIndex = -1; //index -1 will not be found, optionally way CollectionChoiceList.ClearSelection(); ProgrammingCourseActive.Checked = false; AlterLabel.ForeColor = System.Drawing.Color.Black; }
protected void ResetFields() { DisplayDataRO.Text = ""; ProgrammingCourseActive.Checked = false; ChoiceList.ClearSelection(); //ChoiceList.SelectedIndex = -1; //This is an optional way of deselecting CollectionChoiceList.ClearSelection(); AlterLabel.ForeColor = System.Drawing.Color.Black; }