rain_dew
asked on
showModalDialog box
I am using showModalDialog for opening of popup from VB.net web application. When user submits from showModalDialog window, it should get closed.
For this purpose in my javascript function I have used window.close().
But when user clicks submit button on showModalDialog window, another similar window opens up (which is a nowmal window..not showModalDialog).
How to resolve this issue
For this purpose in my javascript function I have used window.close().
But when user clicks submit button on showModalDialog window, another similar window opens up (which is a nowmal window..not showModalDialog).
How to resolve this issue
can u post your script
Below is the code from my VB file
RegisterClientScript("window.open('normalwindow.htm');window.close()","NewFancyScript",True)
For the button in the normalwindow.htm, call the javascript as
<input type="button" onclick="javascript:self.c lose()" />
Try this
<input type="button" onclick="javascript:self.c
Try this
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok
after the line (and only after that line ) you should close the window the way you do it today