Redirection from .ascx

D

dave h

Hi,

I would like to redirect to a web page in a new target. I can do this:

<a href="http://www.google" target=_blank>xxx</a>

but the user has to click the xxx

I can do this in the code behind:

response.redirect("http://www.google.com")

but I can't figure out how to get google to come up in new browser instance

My goal is to avoid having the user need to take any action on this control

Thanks
 
G

Guest

You'd have to write out a client script that executes a javascript window.open.

this.Page.ClientScript.RegisterClientScriptBlock(arg, arg, arg, arg);
 

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

Top