protected void DeleteField() { try { Colleges colleges = new Colleges(); colleges.FieldID = Convert.ToInt32(ddl_DeleteField.SelectedValue); college = new College(); if (college.DeleteField(colleges) == true) { lbl_DeleteField.Text = "Successful delete New Subject...."; } } catch (Exception ex) { lbl_DeleteField.Text = ex.Message; } }