Hi fellow DNN'ers,
I have a problem with this code:
Page.ClientScript.RegisterStartupScript(Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
It runs perfectly fine on my localhost, but nothing happens when I run it on my hosted live portal.
I also tried several other snippets, but not one does the trick:
Me.Page.ClientScript.RegisterStartupScript(Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
'Me.Page.ClientScript.RegisterClientScriptBlock
'ScriptManager.RegisterStartupScript(Me.Parent.Page, Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
'ScriptManager.RegisterStartupScript(Me.Page, Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
'System.Web.UI.ScriptManager.RegisterStartupScript(Me.Parent.Page, Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
'System.Web.UI.ScriptManager.RegisterStartupScript(Me.Page, Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
'System.Web.UI.ScriptManager.RegisterClientScriptBlock(Me.Parent.Page, Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
'System.Web.UI.ScriptManager.RegisterClientScriptBlock(Me.Page, Me.GetType(), "open", "window.open('" & strRedirectTo & "','','height=600,width=800');", True)
I'm stuck........
Please advise.
Thanks,
Jos