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. Advertising

  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. Advertising

  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. Advertising

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. =?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:
    427
    Eliyahu Goldin
    Mar 4, 2005
  2. Brad
    Replies:
    3
    Views:
    3,294
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tp?=
    Jan 31, 2006
  3. EvgueniB
    Replies:
    1
    Views:
    671
    Anthony Borla
    Dec 15, 2003
  4. Frank Fredstone
    Replies:
    1
    Views:
    466
    Jean-Francois Briere
    Jun 27, 2006
  5. Artur McCennon
    Replies:
    0
    Views:
    435
    Artur McCennon
    Jul 22, 2009
Loading...

Share This Page