473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Opening a page in a separate browser

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
Nov 9 '06 #1
4 1213
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" <st*************@msn.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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

Nov 9 '06 #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
Nov 9 '06 #3
most popup blockers will prevent this approach. it is not a good practice.

-- bruce (sqlwork.com)
"Alvin Bruney [MVP]" <www.lulu.com/owcwrote in message
news:u1**************@TK2MSFTNGP03.phx.gbl...
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" <st*************@msn.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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


Nov 9 '06 #4
Thanks everybody.
Nov 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: MrNobody | last post by:
I found an explanation of using Process.Start to open web pages but it has the following comments: // url's are not considered documents. They can only be opened // by passing them as arguments....
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
4
by: Thomas Scheiderich | last post by:
I can't seem to open a word document from any of my browsers except the one on my web server. Here is the .aspx file: ***************************************************************** <%@...
5
by: Brad | last post by:
In several aspx applications I export crytal reports to pdf, xls and doc files and then the aspx page writes the selected export file to the client browser. This all works with one small quirk: ...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
3
by: Larry Bud | last post by:
Wanting to use a technology I saw for one of our apps. We have several apps that a user logs in at on the same page. The app is determined by a drop down. User credentials are checked,...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.