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)