HI
How to prevent return prev-page until click close button in page 2 .
another mean no back to page 1 until click close button on popup.
Page 1 aspx
Protected Sub OpenWindow(ByVal sender As Object, ByVal e As EventArgs)
Dim url As String = "page2.aspx"
Dim s As String = "window.open('" & url + "', 'popup_window', 'width=300,height=100,left=100,top=100,resizable=yes');"
ClientScript.RegisterStartupScript(Me.GetType(), "script", s, True)
End Sub
<asp:Button ID="btnNewWindow" Text="Open new Window" runat="server" OnClick="OpenWindow" />
Page 2 aspx
<asp:Button ID="btnOK" runat="server" OnClientClick="window.close(); return false;" Text="Close" />