protected void btnSave_Click(object sender, EventArgs e) { try { if (this.hdnRoleId.Value != string.Empty) { this.UpdateData(); } else { this.SaveData(); } } catch (System.Exception) { } }