showModalDialog then refresh problem
I have an asp.net page that is using the showModalDialog to alow the user to edit data from that page. If the user changes and saves the data in a dialog I want to refresh the parent window to reflect the changes made. All works well except for the darn:
"Page cannot be refreshed without resending the information"
message I get when the dialog closes and I attempt to refresh the parent.
Here is my code...
Parent Window:
Has a hyperlink with a URL of "javascript: showDialog(parms);"
<script language='JavaScript'>
showDialog{
...
var str = window.showModalDialog(url, parms, options);
if str='Refresh'
window.location.reload(true);
</script>
The child window has a some script that is run when the "Save" button is pressed which tells the parent refresh:
<script language="javascript">window.returnValue="Refresh" ; window.close();</script>
I have seen this work before without getting that message but I must be missing a setting some place. Does anyone have any idea how to prevent the ""Page cannot be refreshed..." message?
Thanks!
-Dave
|