protected void btnCreate_Click(object sender, EventArgs e) { try { string name = txtService.Text.Trim(); BusinessLayer.AddMtnPlayService(subsConnection, name); successful(); txtService.Text = string.Empty; } catch (Exception ex) { lblStatus.Text = ex.Message; success.Attributes["class"] = "notification-box notification-box-error"; hpkClose.CssClass = "notification-close notification-close-error"; success.Visible = true; } }