Modal Popup Window Problem.
-
How can I display a Modal Popup window in ASP.Net using vb.net 2005. I had used the code bellow to show a popup window. ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.showModalDialog('abc.aspx','_blank','height=450px,width=625px,menubar=no');", True) But this code creates a problem i.e., when i click on a button on the popup window it again displays the same form in another window non modally. And if i open the window non modally i.e., using the code bellow i dont get any errors. ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.open('abc.aspx','_blank','height=450px,width=625px,menubar=no');", True) Please Help how to prevent this. Thanks in advance.
Sekhar :)
-
How can I display a Modal Popup window in ASP.Net using vb.net 2005. I had used the code bellow to show a popup window. ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.showModalDialog('abc.aspx','_blank','height=450px,width=625px,menubar=no');", True) But this code creates a problem i.e., when i click on a button on the popup window it again displays the same form in another window non modally. And if i open the window non modally i.e., using the code bellow i dont get any errors. ClientScript.RegisterStartupScript(Me.GetType, "popup", "window.open('abc.aspx','_blank','height=450px,width=625px,menubar=no');", True) Please Help how to prevent this. Thanks in advance.
Sekhar :)
check the parameter for Window.showModalDialog..
Amit Agarwal