Friday, August 22, 2014

Close SharePoint Popup Window on ASP.Net Button_Click


Close SharePoint Popup Window

Closes the Popup after your server side code executes.

            if (Page.IsPostBack)
            {
                string script = "<script language='javascript'>window.parent.location = window.parent.location; window.close();</script>";
                if (!this.Page.ClientScript.IsClientScriptBlockRegistered("rKey"))
                    this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "rKey", script);
            }


reff: http://antoniolanaro.blogspot.in/2011/04/open-sharepoint-2010-modal-dialog-and.html

No comments:

Post a Comment