Solved

ASP.NET Response.Redirect open in new window alternatives

Posted on 2011-09-07
10
1,271 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
10 Comments
 
LVL 9

Accepted Solution

by:
Grant Spiteri earned 125 total points
Comment Utility
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
Comment Utility
@gspiteri:

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

Expert Comment

by:Grant Spiteri
Comment Utility
0
 

Author Comment

by:conrad2010
Comment Utility
@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
Comment Utility
really it would take you all of 20 mins to wrap it soz buddy dont know how to do it another way
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:conrad2010
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 
LVL 15

Assisted Solution

by:navneethegde
navneethegde earned 125 total points
Comment Utility
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now