protected void btnSave_Click(object sender, EventArgs e) { Page.Validate("AddEdit"); if (Page.IsValid) { try { BankService.AddOrUpdateBank(RowID, txtName.Text, txtAccountName.Text, txtAccountNumber.Text); ReloadCurrentPage(); } catch (Exception ex) { WebFormHelper.SetLabelTextForException(lblStatusAddEdit, ex, LabelStyleNames.ErrorMessage); } } }