I have a popup window and after selecting a value from this window I need to be able to close it and reload the page that called it. I used this code in my aspx.vb file:
Response.Write("<SCRIPT language='javascript'>"
Response.Write("window.opener.location.reload(true);"
Response.Write("self.close();"
Response.Write("</SCRIPT>"
However when I run this code I receive this IE message:
The page cannot be refreshed without resending the information. Click Retry to send the information again or click Cancel to return to the page that you were trying to view. And given the options of Retry or Cancel.
When I click Retry it will reload the calling page but doesn't close the popup window. Nethertheless, I need to bypass this message so the client doesn't get it everytime they select a value from the popup form. Any ideas how to reload a calling page from a popup window? Thanks!
Response.Write("<SCRIPT language='javascript'>"
Response.Write("window.opener.location.reload(true);"
Response.Write("self.close();"
Response.Write("</SCRIPT>"
However when I run this code I receive this IE message:
The page cannot be refreshed without resending the information. Click Retry to send the information again or click Cancel to return to the page that you were trying to view. And given the options of Retry or Cancel.
When I click Retry it will reload the calling page but doesn't close the popup window. Nethertheless, I need to bypass this message so the client doesn't get it everytime they select a value from the popup form. Any ideas how to reload a calling page from a popup window? Thanks!