[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

ASP.NET Response.Redirect open in new window alternatives

Posted on 2011-09-07
10
Medium Priority
?
1,515 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 500 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
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 

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 500 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 500 total points
ID: 36500424
0
 
LVL 15

Assisted Solution

by:Navneet
Navneet earned 500 total points
ID: 36500760
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

656 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