Open a new browser window

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.
 
B

Brock Allen

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top