Redirection from .ascx

  • Thread starter Thread starter dave h
  • Start date Start date
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
 
You'd have to write out a client script that executes a javascript window.open.

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