Modal window
-
Hi I am opening an aspx page in a modal window using vbscript command window.showmodaldialog(). It is working fine but when ever I am clicking on any button on the modal window to perform any action a new window is being opened which is having the same .aspx file. eg: I am opening b.aspx from a.aspx on button click of a button on a.aspx in a modal window using the vbscript command. So, b.aspx is being opened in a new modal window. Now this b.aspx has a button which will say populate a datagrid on b.aspx itself. But whenever I am clicking on the button a new window is being opened containing b.aspx and having the datagrid being populated in the new window, the modal window is remained open as well. Can any body please help me on this? Thanks in advance
-
Hi I am opening an aspx page in a modal window using vbscript command window.showmodaldialog(). It is working fine but when ever I am clicking on any button on the modal window to perform any action a new window is being opened which is having the same .aspx file. eg: I am opening b.aspx from a.aspx on button click of a button on a.aspx in a modal window using the vbscript command. So, b.aspx is being opened in a new modal window. Now this b.aspx has a button which will say populate a datagrid on b.aspx itself. But whenever I am clicking on the button a new window is being opened containing b.aspx and having the datagrid being populated in the new window, the modal window is remained open as well. Can any body please help me on this? Thanks in advance
try putting:
<base target=_self>
in the HEAD of your aspx page.
Ian Darling "If we've learned anything from history, it's that those who feed trolls are condemned to repetitive conversations. Or something like that." - Eric Lippert
-
Hi I am opening an aspx page in a modal window using vbscript command window.showmodaldialog(). It is working fine but when ever I am clicking on any button on the modal window to perform any action a new window is being opened which is having the same .aspx file. eg: I am opening b.aspx from a.aspx on button click of a button on a.aspx in a modal window using the vbscript command. So, b.aspx is being opened in a new modal window. Now this b.aspx has a button which will say populate a datagrid on b.aspx itself. But whenever I am clicking on the button a new window is being opened containing b.aspx and having the datagrid being populated in the new window, the modal window is remained open as well. Can any body please help me on this? Thanks in advance