conrad2010
asked on
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.ope n('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?
Response.Write("<script>")
Response.Write("window.ope
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you tried this via the client side?
Jquery can do it
http://stackoverflow.com/questions/1086672/popup-blocked-jquery-window-open-in-success-ajax-outside-ok
Jquery can do it
http://stackoverflow.com/questions/1086672/popup-blocked-jquery-window-open-in-success-ajax-outside-ok
ASKER
@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)
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)
really it would take you all of 20 mins to wrap it soz buddy dont know how to do it another way
ASKER
so there is really nothing that would work from code behind that does something like this:
Response.Redirect("http://www.google.com","_new ")
Response.Redirect("http://www.google.com","_new
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
keep original page open and also open up another page