Click here to Skip to main content
16,015,040 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

MIDL
string strScript = "<script>";
       strScript += "window.opener.location.reload();";
       strScript += "self.close()";
       strScript += "</script>";
       ClientScript.RegisterClientScriptBlock(this.GetType(), "AddDetail", strScript);


I m using the above code to reload the parent page, but i am getting the error.

Please help
Note: below is the error message displayed

"To Display the webpage again, Internet Explorer needs to resend the information you have previously.

If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again."
Posted
Updated 17-Jan-11 20:17pm
v3
Comments
Sandeep Mewara 18-Jan-11 3:30am    
So, whats the issue? It's a standard message.

yes this is a standard message.

whenever a window is refreshed that was previously requested with POST data, will popup a confirmation message
".. Internet Explorer needs to resend the information you have previously...".

you can avoid this if window.opener.location.href="..." is called for parent window.
If POST data is actually needed to display the parent window, you may call __doPostBack(); method of parent window.
 
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