protected void Button1_Click(object sender, EventArgs e) { string notifications = ""; // First off - load all users foreach (CheckBox c in actions) { // Update the user with the new permission if (c.Checked) { notifications += c.ID; } } Notification.UpdateNotifications(base.getUser(), node, notifications); getUser().resetNotificationCache(); base.getUser().initNotifications(); var feedback = new umbraco.uicontrols.Feedback(); feedback.Text = ui.Text("notifications") + " " + ui.Text("ok") + "</p><p><a href='#' class='btn btn-primary' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>"; feedback.type = umbraco.uicontrols.Feedback.feedbacktype.success; pane_form.Controls.Clear(); pane_form.Controls.Add(feedback); //pane_form.Visible = false; pl_buttons.Visible = false; }
protected void Button1_Click(object sender, EventArgs e) { string notifications = ""; // First off - load all users foreach (CheckBox c in actions) { // Update the user with the new permission if (c.Checked) notifications += c.ID; } Notification.UpdateNotifications(base.getUser(), node, notifications); getUser().resetNotificationCache(); base.getUser().initNotifications(); var feedback = new umbraco.uicontrols.Feedback(); feedback.Text = ui.Text("notifications") + " " + ui.Text("ok") + "</p><p><a href='#' class='btn btn-primary' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>"; feedback.type = umbraco.uicontrols.Feedback.feedbacktype.success; pane_form.Controls.Clear(); pane_form.Controls.Add(feedback); //pane_form.Visible = false; pl_buttons.Visible = false; }