简体   繁体   中英

how to refresh parent aspx page from popup window without security prompt

I am opening a popup window using showModalDialog and refreshing the parent page on popup close is working, however it also gives me the "internet explorer needs to resend the information" prompt which is totally unwanted, how can I get rid of this.

PS. I cannot use Ajax here.

thanks.

When you say "refreshing the parent page", do you mean simply reloading the page from the server?

If it is a simple GET, you should be able to use location.reload(true) .

If you need something more complex, you'll need to provide a bit more detail.

EDIT:

Based on the code in your comments, it appears that you are reloading the parent window location in several different ways, which seems unnecessary at best. Also, if you reached the current page via a POST (in ASP.Net, generally a "Postback"), then calling location.reload() actually triggers the POST to be resent. It is the resend of the POST that is causing the prompt, where IE wants you to know that you're about to perform a duplicate submission of data to the server (in case that might cause issues).

When you "refresh" the page, can it be a clean request to the parent page, or does it need to resubmit prior data? If the request can be a GET, try removing the "doOnClose" method of the popup page and allow "window.location = window.location" in the parent page to reload the page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM