Sunday, October 7, 2012

Refresh the parent and close the popup window


The below code is for asp.net, to refresh the parent window and close the popup window at the same time.

            Dim strScript As String = "window.opener.location.reload(); self.close();"
            ScriptManager.RegisterStartupScript(Me, Me.GetType, "ALERT", strScript, True)