Solved

Open a new Browser Window using VB.Net/ASP.Net 2005

Posted on 2007-04-10
2
3,559 Views
Last Modified: 2013-11-26
I would like to know how to open a new browser window using just VB.NET/ASP.NET 2005.

What I have is a webpage with a listbox with filenames in it and a button. I want my users to be able to select a filename from the listbox, then click the button to display that file (an image) in a new browser.
The functionality I want to mimic would be that of a hyperlink.

If its possible to have the listbox list hyperlinks, that'd work too.

Any adice would be greatly appreciated.
0
Comment
Question by:AaronNance
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 18883554
You need window.open:

Dim popupScript As String = "<script language='javascript'>" & _
  "window.open('PopUp.aspx', 'CustomPopUp', " & _
  "'width=200, height=200, menubar=yes, resizable=no')" & _
  "</script>"

Page.RegisterStartupScript("PopupScript", popupScript)

Bob
0
 
LVL 1

Author Comment

by:AaronNance
ID: 18883691
You Sir, are an animal!!

Thank you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp.net uploading picture to a temporary folder 4 33
asp.net web app 3 57
Access-Control-Allow-Origin 4 41
Need a quick overview of Selenium testing 2 35
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question