Link to home
Start Free TrialLog in
Avatar of rohitnet100
rohitnet100

asked on

Internet Explorer needs to resend the information.

How can I stop Internet Explorer to stop asking :
"To display the webpage again, Internet Explorer needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click retry to display the webpage again."

I am using below code to refresh my page from a popup window:
 Collapse
Page.ClientScript.RegisterStartupScript(GetType(Page), "close", "<script language="'javascript'" type='text/javascript'>" & _
                                                                        "window.close(); if (window.opener && !window.opener.closed) {" & _
                                                                       "window.opener.location.reload(true); } </script>")
Avatar of Maverick_Cool
Maverick_Cool
Flag of India image

Avatar of Michel Plungjan
You need to change the form method from POST to GET
Avatar of rohitnet100
rohitnet100

ASKER

I have already checked this link, but  my problem wasn't solved from solutions given there.
Let me know, if any other solutions you have, except those mentioned in this link which you send.
try this:
you can use
window.location=window.location; to refresh the page
instead of
location.reload(true);
No. The reload(true) is reloading from server which is what is needed since otherwise it loads from cache.
I am already using Get method.
also, i tried window.location=window.location, it wasn't display IE message, but, i lost my current data of webpage.
ASKER CERTIFIED SOLUTION
Avatar of Maverick_Cool
Maverick_Cool
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The message only comes if the form action on the parent page was HTTP POST so please have another look at how you communicate with the server in the opener page

Here is a suggestion to use a redirect after the form submission

http://forums.asp.net/t/1461810.aspx/1
My parent page is Content page. Master page method is "Get".
PopUp window page mehod is also "Get".

Still i have no solution to avoid IE message.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How can i make chage to my content page method as "GET".
No idea. I do not do asp :(
thanks