Opening a page in a separate browser

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
 
L

Laurent Bugnion

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
 
A

Alvin Bruney [MVP]

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
 
B

bruce barker \(sqlwork.com\)

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
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top