Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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 June 6th, 2003, 05:30 PM
Authorized User
Join Date: Jun 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dymatic List Box

As a Vb developer for years I have a couple old habits I want to use with ASP.

First, how do I load a list box in ASP using a query from a database?

Second, how do I make a page show different images in the same location? By this I mean a have a ASP page that will show up to four different images based upon the users selection from the previous page.

Any help with the two problems I am having would be nice.

Thanks in advance
Old June 8th, 2003, 07:57 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post

To answer your first question, check out :

HOWTO: Populate a Combobox from Active Server Pages
(175426) - This article demonstrates how to load a ComboBox with records that are retrieved from a database. This example creates an Active Server Pages (ASP) page that connects to the Adventure Works database.

For your second, just use and IF/CASE statement to convert the data entered into a image name and then simpy put that image name in your code.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab Values From List Box into Text Box phungleon VB How-To 2 June 19th, 2008 10:33 PM
multi-column list box values moved to 2nd list box sbmvr Access VBA 1 May 14th, 2007 01:58 PM
select box/List box alphabetic sort sasidhar79 Javascript How-To 3 November 10th, 2004 03:04 AM
Populate List Box by Combo Box Selection mmcdonal Access 2 June 15th, 2004 12:08 PM
Search using drop down list box and a text box tcasp Classic ASP Basics 1 July 31st, 2003 02:58 PM

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