protected void btnSave_OnClick(object sender, EventArgs e) { Page.Validate(WebFormHelper.AddEditValidationGroup); if (!Page.IsValid) { return; } try { TermService.AddOrUpdateTerm(RowID, txtName.Text, chkIsActive.Checked); btnCancel_OnClick(sender, e); } catch (Exception ex) { WebFormHelper.SetLabelTextWithCssClass(lblStatusAddEdit, ex.Message, LabelStyleNames.ErrorMessage); } }