Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I'm using this ClientScript to make frmLogin as popup window. After I click login, the widow will close and direct to frmForm2 in master web form.

frmForm1

VB
If (Not ClientScript.IsStartupScriptRegistered(Me.GetType(), someScript)) Then
                ClientScript.RegisterStartupScript(Me.GetType(), someScript, "window.open('Klien/frmLogin.aspx?stsemak=1','" & Session("strNoMatrik") & "','" & Session("strIdKaunseling") & "');", True)
            End If


frmLogin

VB
If (Not ClientScript.IsStartupScriptRegistered(Me.GetType(), someScript)) Then
                            ClientScript.RegisterStartupScript(Me.GetType(), someScript, "window.location.replace('frmForm2.aspx','" & Session("strIdKaunseling") & "','" & Session("strNoMatrik") & "'),'" & Me.hidIDKaunseling.Value & "';", True)
                        End If


The problem here, when I clicked login, frmForm2 display at the same window. So meaning it will display 2 windows. I hope someone can help me ASAP. TQ
Posted
Updated 15-Oct-14 15:08pm
v2

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