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 December 10th, 2004, 06:04 AM
Registered User
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp boxlist add/remove

hi, i have some problems that i hope i can get some help from the pros. i have two multiple listboxes, one is the source listbox and one is the target listbox. when items are selected and the add/remove button is pressed, items are add/remove from the listboxes. But i would like to limit the items in the target listbox to be 8, which means the selected items from the source listbox plus the existing items in the target listbox can not exceed 8. How can i do this...
another questions is, i would like the items in both listboxes to highlight the first item by default instead of the selected item...any suggestion??
many thanks

Old December 10th, 2004, 06:47 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post

Use an onChange event on the first dropdown to look at the value of the length property of the second dropdown prior to moving an element across.

Similar Threads
Thread Thread Starter Forum Replies Last Post
add & Remove frm Listbox hotshot_21 ASP.NET 1.0 and 1.1 Basics 1 June 21st, 2007 05:26 PM
Dual dropdown lists, add and remove Endelee Classic ASP Basics 1 May 4th, 2007 03:31 AM
how 2 add or remove .js dynamically in my pages nerssi Javascript 2 September 21st, 2006 09:14 AM
Add&Remove rows from DB using listbox martinhogan VB Databases Basics 3 September 11th, 2006 06:24 AM
Add and Remove Nodes in XML document. tutul128 XML 3 March 1st, 2004 10:17 AM

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