Solved

Internet Explorer needs to resend the information.

Posted on 2011-03-20
13
3,102 Views
Last Modified: 2012-05-11
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>")
0
Comment
Question by:rohitnet100
  • 5
  • 5
  • 3
13 Comments
 
LVL 7

Expert Comment

by:Maverick_Cool
ID: 35176237
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35176271
You need to change the form method from POST to GET
0
 

Author Comment

by:rohitnet100
ID: 35176292
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:Maverick_Cool
ID: 35176325
try this:
you can use
window.location=window.location; to refresh the page
instead of
location.reload(true);
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35176448
No. The reload(true) is reloading from server which is what is needed since otherwise it loads from cache.
0
 

Author Comment

by:rohitnet100
ID: 35176610
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.
0
 
LVL 7

Accepted Solution

by:
Maverick_Cool earned 250 total points
ID: 35176645
YOU CAN GET PREVIOUS PAGE(IN THIS CASE SAME PAGE)VIEWSTATE OBJECT AND REAPPLY
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35178477
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
0
 

Author Comment

by:rohitnet100
ID: 35180582
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.
0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 250 total points
ID: 35180713
The form your submit on your parent page is POST, I am pretty sure of that
0
 

Author Comment

by:rohitnet100
ID: 35193562
How can i make chage to my content page method as "GET".
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35193593
No idea. I do not do asp :(
0
 

Author Closing Comment

by:rohitnet100
ID: 35226688
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question