protected void btnSave_Click(object sender, System.EventArgs e) { SynchronizeDT(); //Page.RegisterStartupScript("DisableButtons","DisableButtons(this);"); DataTable dt = (DataTable)ViewState["Participants"]; Issue2.UpdateResources(IncidentID, dt); if (BtnID != String.Empty) { Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "<script language=javascript>" + "try {window.top.frames['right'].location.href='IncidentView.aspx?IncidentId=" + IncidentID + "';}" + "catch (e){}</script>"); } else if (Request["closeFramePopup"] != null) { CommandParameters cp = new CommandParameters("MC_HDM_ResEdit"); Mediachase.Ibn.Web.UI.WebControls.CommandHandler.RegisterCloseOpenedFrameScript(this.Page, cp.ToString()); } else { Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "<script language=javascript>" + "try {window.opener.top.frames['right'].location.href='../Incidents/IncidentView.aspx?IncidentId=" + IncidentID + "';}" + "catch (e){} window.close();</script>"); } }