Solved

Internet Explorer needs to resend the information.

Posted on 2011-03-20
13
3,010 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
Comment Utility
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
You need to change the form method from POST to GET
0
 

Author Comment

by:rohitnet100
Comment Utility
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
 
LVL 7

Expert Comment

by:Maverick_Cool
Comment Utility
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
Comment Utility
No. The reload(true) is reloading from server which is what is needed since otherwise it loads from cache.
0
 

Author Comment

by:rohitnet100
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 7

Accepted Solution

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

Expert Comment

by:Michel Plungjan
Comment Utility
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
Comment Utility
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
Comment Utility
The form your submit on your parent page is POST, I am pretty sure of that
0
 

Author Comment

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

Expert Comment

by:Michel Plungjan
Comment Utility
No idea. I do not do asp :(
0
 

Author Closing Comment

by:rohitnet100
Comment Utility
thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now