protected void btnSave_Click(object sender, EventArgs e) { Page.Validate(WebFormHelper.AddEditValidationGroup); if (!Page.IsValid) { return; } try { JobPositionService.AddOrUpdateJobPosition(RowID, txtName.Text); btnCancel_Click(sender, e); } catch (Exception ex) { WebFormHelper.SetLabelTextWithCssClass(lblStatusAddEdit, ex.Message, LabelStyleNames.ErrorMessage); } }