Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 26th, 2006, 03:15 PM
Registered User
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default pop up window in asp

hei guys,
I've got some code to read a list of movies from a database & display them on a label
(as a link). However could someone please show me how i would add a target attribute
to this ( as i want a new window to pop up whenever one of these links is clicked).

            lblSearchResults.Text = "<ol"
            While SQLReader.Read
                lblSearchResults.Text &= "<li><a href=""MovieDetail.aspx?ID=" & _
                SQLReader.Item("MovieInfoID").ToString & "&IMDB=" & _
                SQLReader.Item("IMDBTitleNumber").ToString & """>" & _
                SQLReader.Item("MovieTitle") & "</a> </li>"

            End While

I belive the sytax is :

<a href="http://www.w3schools.com/"
target="_blank">Visit W3Schools!</a>


Similar Threads
Thread Thread Starter Forum Replies Last Post
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
Pop Window testsubject General .NET 1 July 2nd, 2006 01:29 PM
Creating Pop-up Window from ASP.Net Table Cell sueolo Classic ASP Basics 0 September 1st, 2005 01:54 PM
pop-up window rajiv_software Classic ASP Basics 1 April 12th, 2005 06:11 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.