Response.redirect with a target attribute - Derek Adkins

Response.redirect with a target attribute

I have a problem that Googling is not solving. Maybe someone can help out with this:

I want to redirect to an external site from my ASP.NET application but with a target=_blank attribute.

I also want to dynamically add querystring parameters to the URL in codebehind before doing the redirect.

Is this possible?  I've seen some JavaScript that only works for static URL's.  I want to append session variable values onto the end of the URL in codebehind before redirecting.

Any ideas?

Published 29 August 2006 01:55 PM by derek

Comments

# Jonathan said on 29 August, 2006 05:48 PM
You could append the relevant query string parameters and then just write them to the output stream as JavaScript.
# Keith Rull said on 30 August, 2006 08:50 AM
Hi Derek! I answered this problem on a blog post i created today.. check it out! http://www.keithrull.com/PermaLink,guid,bc138a57-1c37-4d68-8c69-d898fc642fb0.aspx hope it helps! :)
# Keith Rull said on 30 August, 2006 08:54 AM

I was browsing dotnet.org.za today when i stumbled into an interesting problem that Derek Adkins posted

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: