May a times we need to redirect a user to a new popup window with some data and for that we are using folowing function.
Private Sub JsOpenNewURL(ByVal strURL As String)
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "NewUrl", strURL, False)
End Sub
The usage of the above function is as follows :
JsOpenNewURL("<script language='JavaScript'> window.open('Newpagename.aspx?parameter1=P1&Parameter2=" & gvRow.Cells(0).Text & "&Paremeter3=" & gvRow.Cells(1).Text & "', 'Page Titme', 'toolbar,width=900,height=800,menubar=no,resizable=no,scrollbars=yes,toolbar=no') </script>")
It is working perfectly fine.
My problem is Once a popup window is opened and from that window If I again want to redirect user to NEW window, and if I use the same function as mentioned above then the data is shown in ACTIVE window instead of opening a new window.
Can anybody fine tune this?
In short the requirement is opening a NEW window everytime when we use above function in succession.