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 May 26th, 2005, 10:27 AM
Registered User
 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 2 column Combobox in ASP

Is it possible to have a 2 column combobox in ASP (not .net)?

 
Old May 26th, 2005, 05:42 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

I dont believe so - what are you trying to achieve?

Wind is your friend
Matt
 
Old May 27th, 2005, 03:17 AM
Registered User
 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am trying to get the users real name next to their login ID which already is in a combo. This is for a user maintenance page and the user ID's are not based on user name.

Thanks

 
Old May 29th, 2005, 07:48 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Yes you can do that. I thought you wanted two selectable columns. Just write as you would if it wasnt in an <option> tag:

response.write "<option value=" & RS(0) & " : " & RS(1) & ">" & RS(0) & " : " & RS(1)

Wind is your friend
Matt
 
Old May 31st, 2005, 09:09 AM
Registered User
 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Matt,

I confess its not how I was trying to do it but I worked an elegant solution out using your example that gives the right display and requires little extra processing

Jason






Similar Threads
Thread Thread Starter Forum Replies Last Post
Solved - rs.FindFirst and Multiple Column ComboBox eusanpe Access VBA 1 May 20th, 2008 03:21 PM
Solved-RS.FindFirst and Multiple Column ComboBox eusanpe Access VBA 0 May 19th, 2008 01:25 PM
Datagridview & combobox column p2pmarit .NET Framework 2.0 1 July 31st, 2006 02:31 AM
Combobox Showing Wrong Column SerranoG Access 4 June 30th, 2005 07:23 AM
Multiple column for combobox in C# twaghorn C# 1 July 14th, 2003 04:10 AM





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