You need to use Page.RegisterStartupScript() (on the server) to register a
JavaScript on the page that will run as soon as the page loads in the
browser. Something like:
Dim str As String = "<script
type=""text/javascript"">window.open('somepage.aspx?queryStrin g=whatever');<
/script>"
If Not Page.IsStartupScriptRegistered("OpenWindow") Then
Page.RegisterStartupScript("OpenWindow", str)
End If
--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Jeremy" <je*************@blueyonder.co.yk> wrote in message
news:#Z**************@tk2msftngp13.phx.gbl...
How can I call another webform as a new window, as opposed to replacing
the content of the current window?
I need to be able to do this from code (eg. Server.Transfer) or implicitly
behind a hyperlink.
Thanks in advance.