Opening a page in a separate browser

  • Thread starter Thread starter Uriah Piddle
  • Start date Start date
U

Uriah Piddle

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
 
Hi,

Uriah said:
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
 
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
 
most popup blockers will prevent this approach. it is not a good practice.

-- bruce (sqlwork.com)


Alvin Bruney said:
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 said:
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
 
Back
Top