Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 26th, 2005, 10:27 AM
Registered User
 
Join Date: May 2005
Location: , , United Kingdom.
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)?

Reply With Quote
  #2 (permalink)  
Old May 26th, 2005, 05:42 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
  #3 (permalink)  
Old May 27th, 2005, 03:17 AM
Registered User
 
Join Date: May 2005
Location: , , United Kingdom.
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

Reply With Quote
  #4 (permalink)  
Old May 29th, 2005, 07:48 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
  #5 (permalink)  
Old May 31st, 2005, 09:09 AM
Registered User
 
Join Date: May 2005
Location: , , United Kingdom.
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:09 AM.


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