Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
VB
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>")
Posted
Updated 18-Mar-11 20:05pm
v2
Comments
Sergey Alexandrovich Kryukov 18-Mar-11 20:50pm    
"How can I stop Internet Explorer to stop asking" means "How can I make Internet Explorer keep asking"... or do I miss something? :-)
--SA

Add return false; end of the javascript. That's all.
 
Share this answer
 
Comments
Rohit.Net100 19-Mar-11 20:22pm    
No luck !
Modified code:

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) return false; } </script>")
Haven't got any solution to this problem yet.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900