/// <summary>Handles the <see cref="Button.Click"/> event of the <see cref="SaveNewButton"/> control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void SaveNewButton_Click(object sender, EventArgs e) { if (!this.Page.IsValid) { return; } if (!this.IsStatusNameUnique(null, this.txtNewStatus.Text)) { this.cvDuplicateUserStatus.IsValid = false; return; } UserStatus.InsertStatus(this.txtNewStatus.Text, this.PortalId); this.HideAndClearNewStatusPanel(); this.BindData(); }