• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1582
  • Last Modified:

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?
0
conrad2010
Asked:
conrad2010
4 Solutions
 
Grant SpiteriSenior 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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_net2Commented:
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
 
disruptCommented:
0
 
NavneetCommented:
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now