Solved

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

Posted on 2007-04-10
2
3,547 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 …

856 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