Response.Redirect to new page?

  • Thread starter Thread starter Joris De Groote
  • Start date Start date
J

Joris De Groote

Hi

I have a response.redirect("") but I want to get this page to open in a new
window ("_blank") . How can I do this?

Thanks
 
Instead of redirect, embed javascript on your page that will open the window.
 
One option is to simply use an achor tag with the target attribute set, such
as this:
<a href="NewPage.aspx" target='_blank'>click me</a>

Or you could use a little client side JavaScript like this:
window.open('NewPage.aspx','_blank')

Or you could use this free popup control...
http://SteveOrr.net/articles/ClientSideSuite.aspx
....which response to server side code such as this:
WindowOpener1.OpenWindow("NewPage.aspx")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top