Dear all expert,
I use javascript to open a modal dialog window
window.showModalDialog('child.aspx');
but in my child.aspx, got a button, when I click the button, it will do
the postback, mean that it shoul refresh the page.. but in my case, the open
another window...
why this happen ? isn't the postback will only refresh in the same window ?
Am I missing something ? Please kindly point me my mistake...
Thank you very much.
Best regards,
Bsiang.it's a limitation of the ModalDialog....
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Bsiang Tan" <tbsiang1982@.hotmail.com> wrote in message
news:O%23PNnE9%23DHA.2308@.tk2msftngp13.phx.gbl...
> Dear all expert,
>
> I use javascript to open a modal dialog window
> window.showModalDialog('child.aspx');
> but in my child.aspx, got a button, when I click the button, it will
do
> the postback, mean that it shoul refresh the page.. but in my case, the
open
> another window...
> why this happen ? isn't the postback will only refresh in the same window
?
> Am I missing something ? Please kindly point me my mistake...
> Thank you very much.
> Best regards,
> Bsiang.
You can avoid it by using an iframe.
Thanks to you all !!
"Paul Peeters" <anonymous@.discussions.microsoft.com> wrote in message
news:51CD37F0-CEBE-4B54-96AF-79D185FD3C56@.microsoft.com...
> You can avoid it by using an iframe.
Thanks you both.
"Paul Peeters" <anonymous@.discussions.microsoft.com> wrote in message
news:51CD37F0-CEBE-4B54-96AF-79D185FD3C56@.microsoft.com...
> You can avoid it by using an iframe.
Saturday, March 24, 2012
Why Postback open a new window..?
Labels:
asp,
aspx,
button,
child,
dear,
dialog,
expert,
javascript,
modal,
net,
postback,
showmodaldialog,
window,
windowwindow
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment