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?
conrad2010Asked:
Who is Participating?
 
Grant SpiteriConnect With a Mentor Senior consultantCommented:
Im curious do you want to navigate elsewhere from your original page or do you want to keep your original page open and also open up another page?
0
 
conrad2010Author Commented:
@gspiteri:

keep original page open and also open up another page
0
 
Grant SpiteriSenior consultantCommented:
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
conrad2010Author Commented:
@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)
0
 
Grant SpiteriSenior consultantCommented:
really it would take you all of 20 mins to wrap it soz buddy dont know how to do it another way
0
 
conrad2010Author Commented:
so there is really nothing that would work from code behind that does something like this:

Response.Redirect("http://www.google.com","_new")
0
 
Grant SpiteriSenior consultantCommented:
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
0
 
asp_net2Connect With a Mentor Commented:
Did you try Server.Transfer? Try that as long as you are sending user to another page within your application as this method will NOT work if sending user to page outside your application. See if it gets caught by your popup blocker.
0
 
NavneetConnect With a Mentor Software EngineerCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.