protected void PasteParticipantsCopy_OnClick(object sender, EventArgs e) { AttendRegistrationEngine.PasteParticipantsCopy(CurrentPage as EventPage); System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(), "scriptid", "window.parent.location.href='" + EPiServer.Editor.PageEditing.GetEditUrl((CurrentPage as IContent).ContentLink) + "'", true); }