Solved

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now