Open a new browser window

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,
I have a button on my form, and on its click event, I would like to
open a new window of my browser with a specific link.

I have been searching on the net, but can't find the appropriate code.

I hope someone understands my problem, and helps me out.
Thanks in Advance.
 
In your Button's Click event, do something like this:

Page.RegisterStartupScript("redirect", "window.open(...)")

When the page loads, the startup script will run to launch the new window.
I forget the params to window.open to launch a new browser. Here are the
docs for it though:

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Back
Top