Link to home
Start Free TrialLog in
Avatar of conrad2010
conrad2010

asked on

ASP.NET Response.Redirect open in new window alternatives

I'm redirecting to a new window from code behind and tried this alternative:

Response.Write("<script>");
Response.Write("window.open('www.google.com','_new')");
Response.Write("</script>");

but this is blocked by the popup blocker, which I cannot have as a solution... any other suggestions that bypass the popup blocker?
ASKER CERTIFIED SOLUTION
Avatar of Grant Spiteri
Grant Spiteri
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of conrad2010
conrad2010

ASKER

@gspiteri:

keep original page open and also open up another page
@gspiteri:

I like the idea, but a little too much for this problem... would never get the ok to build a webservice for thes (I'm at work here)
really it would take you all of 20 mins to wrap it soz buddy dont know how to do it another way
so there is really nothing that would work from code behind that does something like this:

Response.Redirect("http://www.google.com","_new")
not that i know of when it comes to avoiding pop up blockers theres multiple ways to open a new window from code behind but its the pop up blocker thats the pain
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Navneet Hegde
Navneet Hegde
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial