model dialog box keeps refreshing its parent window.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello, i've got a child window which will refresh the parent window after it closes
heres the catch, if i use window.open() it works fine, but when i use window.showModelessDialog, the child window keeps poping up..

any idea?
 
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!
 
Back
Top