Issue in IE 11 when I try to refresh my parent page from the popupwindow [Resolved]

Posted by balajirnaukri-12656 under ASP.NET on 3/24/2014 | Points: 10 | Views : 17440 | Status : [Member] | Replies : 1
I am getting the following issue in IE 11
To display the webpage again, the web browser 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

My code snippet is the following where I try to reload my parent page from the popupclose window

$('.closeccmbtn').on('click', function (event) {

Thanks and Regards
ASP.NET Devloper
Solve-IT corp


Posted by: A2H on: 3/24/2014 [Member] [MVP] Silver | Points: 50


The reload() method in IE is actually a post method and IE is showing this popup to avoid loss or resend of the information to the server.
Your Modified Code:
 $('.closeccmbtn').on('click', function (event) {

window.location = window.location;

Additional Details
When a page is loaded using POST request and you try to reload the page using location.reload(true);, the browser needs to send another POST request to the server and this may cause problems as POST is supposed to change state on the server. Therefore, the browser needs confirmation from the user. To solve this problem, we usually use POST-REDIRECT-GET pattern.
Source URL
Please mark my reply as answer if it answer your question

My Blog

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response