Opening a page in a separate browser

Discussion in 'ASP .Net' started by Uriah Piddle, Nov 9, 2006.

  1. Uriah Piddle

    Uriah Piddle Guest

    Hi,

    Does anyone know how to open an ASP.NET 2.0 page in a separate browser
    window? I'm trying to show images when the user clicks a thumbnail and I
    want the user to be able to see the image and the thumbnail at the same
    time.

    Thanks.

    Steve
     
    Uriah Piddle, Nov 9, 2006
    #1
    1. Advertisements

  2. Hi,

    Uriah Piddle wrote:
    > Hi,
    >
    > Does anyone know how to open an ASP.NET 2.0 page in a separate browser
    > window? I'm trying to show images when the user clicks a thumbnail and I
    > want the user to be able to see the image and the thumbnail at the same
    > time.
    >
    > Thanks.
    >
    > Steve


    ASP.NET is irrelevant in this case. Opening the new window happens on
    the client, so it's a HTML and/or JavaScript issue.

    For example:

    <a href="image01.jpg" target="_blank"><img src="thumbnails/image01.jpg"></a>

    HTH,
    Laurent
    --
    Laurent Bugnion, GalaSoft
    Software engineering: http://www.galasoft-LB.ch
    Private/Malaysia: http://mypage.bluewin.ch/lbugnion
    Support children in Calcutta: http://www.calcutta-espoir.ch
     
    Laurent Bugnion, Nov 9, 2006
    #2
    1. Advertisements

  3. Have you tried Response.Write("<script>window.open('page.aspx')</script>")?
    that should do a popup style window. The window.open call also allows you to
    size and customize the window as appropriate.

    --
    ________________________
    Warm regards,
    Alvin Bruney [MVP ASP.NET]

    [Shameless Author plug]
    Professional VSTO.NET - Wrox/Wiley
    The O.W.C. Black Book with .NET
    www.lulu.com/owc, Amazon
    Blog: http://www.msmvps.com/blogs/alvin
    -------------------------------------------------------


    "Uriah Piddle" <> wrote in message
    news:%...
    > Hi,
    >
    > Does anyone know how to open an ASP.NET 2.0 page in a separate browser
    > window? I'm trying to show images when the user clicks a thumbnail and I
    > want the user to be able to see the image and the thumbnail at the same
    > time.
    >
    > Thanks.
    >
    > Steve
    >
     
    Alvin Bruney [MVP], Nov 9, 2006
    #3
  4. most popup blockers will prevent this approach. it is not a good practice.

    -- bruce (sqlwork.com)


    "Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
    news:...
    > Have you tried
    > Response.Write("<script>window.open('page.aspx')</script>")? that should
    > do a popup style window. The window.open call also allows you to size and
    > customize the window as appropriate.
    >
    > --
    > ________________________
    > Warm regards,
    > Alvin Bruney [MVP ASP.NET]
    >
    > [Shameless Author plug]
    > Professional VSTO.NET - Wrox/Wiley
    > The O.W.C. Black Book with .NET
    > www.lulu.com/owc, Amazon
    > Blog: http://www.msmvps.com/blogs/alvin
    > -------------------------------------------------------
    >
    >
    > "Uriah Piddle" <> wrote in message
    > news:%...
    >> Hi,
    >>
    >> Does anyone know how to open an ASP.NET 2.0 page in a separate browser
    >> window? I'm trying to show images when the user clicks a thumbnail and I
    >> want the user to be able to see the image and the thumbnail at the same
    >> time.
    >>
    >> Thanks.
    >>
    >> Steve
    >>

    >
    >
     
    bruce barker \(sqlwork.com\), Nov 9, 2006
    #4
  5. Uriah Piddle

    Uriah Piddle Guest

    Thanks everybody.
     
    Uriah Piddle, Nov 10, 2006
    #5
    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. Sumaira Ahmad

    Opening a Page in a New browser

    Sumaira Ahmad, Nov 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    554
    Kevin Spencer
    Nov 4, 2004
  2. =?Utf-8?B?UmF2aSBK?=

    Getting the user input in a separate popup browser...

    =?Utf-8?B?UmF2aSBK?=, Mar 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    486
    Eliyahu Goldin
    Mar 4, 2005
  3. EvgueniB
    Replies:
    1
    Views:
    867
    Anthony Borla
    Dec 15, 2003
  4. Frank Fredstone
    Replies:
    1
    Views:
    634
    Jean-Francois Briere
    Jun 27, 2006
  5. Bundy
    Replies:
    17
    Views:
    683
    Blinky the Shark
    Dec 24, 2006
  6. Sumaira Ahmad

    Opening a Page in a New browser

    Sumaira Ahmad, Nov 4, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    172
    Sumaira Ahmad
    Nov 4, 2004
  7. Sumaira Ahmad

    Opening a Page in a New browser

    Sumaira Ahmad, Nov 4, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    196
    Chris Gastin
    Nov 7, 2004
  8. Miguel
    Replies:
    2
    Views:
    239
    Dave Anderson
    Jul 11, 2007
Loading...