473,387 Members | 1,501 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 New browser

Hi,

I would like to know if this is possible and how?? Please help..
I have an ASP.NET Web application..
In an aspx page within the application I have a hyperlink whose
NavigateUrl property is set to some other aspx page such as
NewPage.aspx.. When i click on that hyperlink it takes me to the
NewPage.aspx on the same browser. However is it possible to open that
new page in a new browser instead of the same one??

For instance I was following the DIME attachment example from
http://aspnet.4guysfromrolla.com/articles/090804-1.aspx by Scott
Mitchell

and was curious to know if

Hyperlink.NavigateUrl =
"http://localhost/DIMEExampleCSharp/LatestPDF.pdf";
will open up a new browser and show the PDF file in the new browser.

This obviously is a very generic question and would hence apply to any
ASP Web application.

Please, any help will be highly appreciated.

Thanks,
Sumaira
Nov 18 '05 #1
1 1096
You can oopen any page in a new browser instance, by setting the "target"
attribute of a hyperlink to "_blank" or by using the JavaScript
window.open() method.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Sumaira Ahmad" <su***********@gmail.com> wrote in message
news:16**************************@posting.google.c om...
Hi,

I would like to know if this is possible and how?? Please help..
I have an ASP.NET Web application..
In an aspx page within the application I have a hyperlink whose
NavigateUrl property is set to some other aspx page such as
NewPage.aspx.. When i click on that hyperlink it takes me to the
NewPage.aspx on the same browser. However is it possible to open that
new page in a new browser instead of the same one??

For instance I was following the DIME attachment example from
http://aspnet.4guysfromrolla.com/articles/090804-1.aspx by Scott
Mitchell

and was curious to know if

Hyperlink.NavigateUrl =
"http://localhost/DIMEExampleCSharp/LatestPDF.pdf";
will open up a new browser and show the PDF file in the new browser.

This obviously is a very generic question and would hence apply to any
ASP Web application.

Please, any help will be highly appreciated.

Thanks,
Sumaira

Nov 18 '05 #2

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...
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
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....
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: ...
6
by: Kenneth P | last post by:
Hi, It's rather common today, to see a PDF opening within a new Internet page. But how is it done in ASP.NET, VS2003? I'd rather use it as a way to invoice electronically. You email your...
4
by: Vishal | last post by:
Hello, I have a dataset with some content. I can convert this dataset in a csv format which is then stored in a stringwriter. Now I want this be open via excel, so I set the contenttype...
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,...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.