Handling Multiselect HTML Lists
Written by Eric Smith, Northstar Computer Systems LLC
If you've created a SELECT list that is able to have more than one item selected, those items will show up comma-separated in the Request.Form collection. You can use the Split function to break the string anywhere there is a comma, and then use the Trim function to remove any extra spaces at the front or back of the resulting string. The LBound and UBound functions will allow you to determine how many items are in the array that the Split function returns, and you can loop through them and do what you need to with them.
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 2/10/2001
|