I have an ASP.NET page with an IFRAME. The IFRAME contains the second ASP.NET page. I need to be able to click on an "update" button on the page within the IFRAME and have the browser refresh. Lord_Rat provided me with the following code to do this.
The code works, but the problem now is as follows:Code:JavaScript = "<script language=""javascript"">" & vbCrLf JavaScript += "parent.location.reload();" & vbCrLf JavaScript += "</script>" Response.Write(JavaScript)
When I run the application, the first time the page loads, I can click the "update" button on the page within the IFRAME and the parent page will reload with the update in effect. However, if I click on any of the controls on the main page and then try to use the "update" button, I get the following message from IE:
"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."
Is there any way to remedy this problem?




Reply With Quote