model dialog box keeps refreshing its parent window.

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?
 
T

Trevor Benedict R

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top