Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using following code for updating the parent page from pop up page. The code works fine in Internet explorer but not in Chrome. Pls suggest the reason and possible wayout.

Thanks,
Atul

VB
Dim cstype As Type = Me.GetType()
    Dim cScript As String
    cScript = "<script language='javascript'> opener.location.href = '" & Session("varParentPage") + "'; </script>"
    ClientScript.RegisterStartupScript(cstype, "parentwindow", cScript)
Posted

1 solution

Since you're trying to load the window again, do this:
VB
cScript = "<script language="'javascript'"> window.location.href = '" & Session("varParentPage") + "'; </script>"

-KR
 
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