Response.Redirect to new page?

Discussion in 'ASP .Net' started by Joris De Groote, Jun 9, 2006.

  1. 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
     
    Joris De Groote, Jun 9, 2006
    #1
    1. Advertisements

  2. Instead of redirect, embed javascript on your page that will open the window.

    --
    -Demetri


    "Joris De Groote" wrote:

    > 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
    >
    >
    >
     
    =?Utf-8?B?RGVtZXRyaQ==?=, Jun 9, 2006
    #2
    1. Advertisements

  3. 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")

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net





    "Joris De Groote" <> wrote in message
    news:...
    > 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
    >
     
    Steve C. Orr [MVP, MCSD], Jun 9, 2006
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Turley
    Replies:
    1
    Views:
    4,685
    Joey Powell
    Jan 6, 2004
  2. =?Utf-8?B?VHJveQ==?=

    Response.redirect does not redirect from .aspx page

    =?Utf-8?B?VHJveQ==?=, Oct 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    6,189
    Srowe1975
    Oct 15, 2008
  3. anuragsji
    Replies:
    7
    Views:
    14,106
    Luke Zhang [MSFT]
    Jun 14, 2006
  4. André
    Replies:
    3
    Views:
    2,125
    André
    Dec 1, 2006
  5. Doogie
    Replies:
    3
    Views:
    1,018
    Doogie
    Jun 22, 2007
  6. Sal
    Replies:
    1
    Views:
    1,686
  7. Ron Howard
    Replies:
    2
    Views:
    789
    Ron Howard
    Aug 11, 2004
  8. anuragsji
    Replies:
    9
    Views:
    412
    anuragsji
    Jun 15, 2006
Loading...