During opening of Page1.aspx (i.e. durign the PAge Load event) .. if an error occurs I open a popup window PopUp.aspx from the Try-Catch Error block.. but this window does not STAY ON TOP. How do I make it stay on top of Page1.apsx all the time. I don't know if it is bacause .. after Catch block runs ... xeecution returns to FINALLY block which is like back to Page1.aspx.
How can I make Popup.aspx stay up!
Private Sub Page_Load
..
...
Try
..opendb
.. retrive record
catch
Dim strClientCall As String
strClientCall = "<script language=javascript> "
strClientCall &= " var popup = window.open(" & "'genericerror.aspx" & "','_new','left=225,width=575,height=625'" & ");"
strClientCall &= " if(popup) popup.focus(); "
strClientCall &= "</script>"
Response.Write(strClientCall)
Finally
If Not myDataReader Is Nothing Then
myDataReader.Close()
End If
cDAL.CloseDRConnection()
cDAL = Nothing
end try
How can I make Popup.aspx stay up!
Private Sub Page_Load
..
...
Try
..opendb
.. retrive record
catch
Dim strClientCall As String
strClientCall = "<script language=javascript> "
strClientCall &= " var popup = window.open(" & "'genericerror.aspx" & "','_new','left=225,width=575,height=625'" & ");"
strClientCall &= " if(popup) popup.focus(); "
strClientCall &= "</script>"
Response.Write(strClientCall)
Finally
If Not myDataReader Is Nothing Then
myDataReader.Close()
End If
cDAL.CloseDRConnection()
cDAL = Nothing
end try