ShowModalDialog will pass the control to the child window while the
parent window waits for the Child window to unload. After the child
window unloads the parent window will continue with the next line of
code.
So instead of asking the Child Window to refresh the parent window,
change the code to pass a value to the ReturnValue property to the
parent and use this to decide if you need to refresh or postback the
form.
retVal = window.showModalDialog("MyDialog.aspx?Page=" + strURL,
"frmName","width:300px; height:100px;");
if (retVal != null)
return (true);
else
return (false);
HTH
Trevor Benedict R
MCSD
*** Sent via Devdex
http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!