Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

VB
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 :

VB
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.
Posted
Comments
[no name] 26-Mar-12 9:22am    
You want to create a popup from a popup from a popup...? That would be a very annoying UX. Clarify if this is not correct.
thevbguy1 28-Mar-12 10:46am    
Yes you are perfectly right. I want to create a popup from popup from popup. Any siuggestions please.
[no name] 28-Mar-12 11:01am    
Suggestions? Yes, don't do it. This is a horrible UI/UX.
thevbguy1 28-Mar-12 23:57pm    
Hello Mark.. I require to do it till 3rd level only i.e. Popup in Popup in Popup. There is no option. So, if you have any suggestions or u an finetune the code then pl. let me know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900