Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set target like '_blank' using Response.Redirect in code behind without using javascript
Posted

Short answer is, you can't. A Response.Redirect simply changes the destination of a URL, and has nothing to do with browser windows. You need to either make the initial link to the page from which you are redirecting open in a new window (via target= attribute or script), or make the page to which you have redirected have some script which spawns a new window.

All of these solutions, except an <a> tag with a target= (which doesn't help you if you're having postback involved), require script. And I imagine you knew about <a target=...> already anyway.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900