Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi All,

I am opening a pop up(popup1) window successfully with following code. The issue is that when i try to open another popup(popup2) from popup1, it opens in the same window as popup1. Pls suggest..


VB
Dim url As String = "ProcessPopUpForm.aspx"
Dim newWin As String = "window.open('" & url + "', 'popup_window', 'width=750,height=400,left=300,right=0,top=100,resizable=yes,scrollbars=yes');"
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin, True)



Thanks
Posted
Comments
Richard MacCutchan 6-Jun-15 3:38am    
Where is the code that opens popup2?
Afzaal Ahmad Zeeshan 6-Jun-15 3:53am    
Repeat the same code that you wrote for pop up 1.
atul sharma 5126 6-Jun-15 5:53am    
Thanks for the replies!

@Richard: I have already included the code

@Afzaal: I have tried repeating the code, but the new page opens in the same popup window and not new window

1 solution

Resolved:

I have to change the name of window in Java from 'popup_window' to something else like
'popup_window_2'
 
Share this answer
 

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