Solved

ASP.NET Response.Redirect open in new window alternatives

Posted on 2011-09-07
10
1,392 Views
Last Modified: 2012-08-13
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
Comment
Question by:conrad2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 9

Accepted Solution

by:
Grant Spiteri earned 125 total points
ID: 36499811
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
 

Author Comment

by:conrad2010
ID: 36499835
@gspiteri:

keep original page open and also open up another page
0
 
LVL 9

Expert Comment

by:Grant Spiteri
ID: 36499886
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

Author Comment

by:conrad2010
ID: 36499899
@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
 
LVL 9

Expert Comment

by:Grant Spiteri
ID: 36499918
really it would take you all of 20 mins to wrap it soz buddy dont know how to do it another way
0
 

Author Comment

by:conrad2010
ID: 36499941
so there is really nothing that would work from code behind that does something like this:

Response.Redirect("http://www.google.com","_new")
0
 
LVL 9

Expert Comment

by:Grant Spiteri
ID: 36499946
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
 
LVL 4

Assisted Solution

by:asp_net2
asp_net2 earned 125 total points
ID: 36500065
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
 
LVL 16

Assisted Solution

by:disrupt
disrupt earned 125 total points
ID: 36500424
0
 
LVL 15

Assisted Solution

by:navneethegde
navneethegde earned 125 total points
ID: 36500760
0

Featured Post

Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question