Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manipulate multiple selects with VBScript
Message
From
28/06/2001 22:45:40
 
 
To
28/06/2001 14:19:11
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00524838
Message ID:
00525017
Views:
18
>How can I do if I want to manipulate (Ex. display) one selection made from a multiple HTML drop down box? The form calls an ASP file writen in VBScript
>
>Thanks!

I am not sure I understand your question, but if you are selecting multiple options in a multiple HTML select list, and then submitting the form to an ASP page, on the server you would get something like this, where optionVals is the name of the SELECT in the HTML:
vals = Request.Form("optionVals")
'vals would be equal to something like this:
'  "value1,value2,value5,value8"
'you can split this string into an array:
vals = split(vals,",")

'now you access each item like
val1 = vals(0)
In other words, the values of the options selected are passed as a comma-separated list of name/value pairs. You can then convert it into an array by using the split method and access each value individually or do whatever you need with them. I find that the split method is very handy when separating these values in one line of code.

Hope this helps. If not, please give some more detail on what you're trying to accomplish.
Andres M. Chiriboga, MCSE, MCP+I
Previous
Reply
Map
View

Click here to load this message in the networking platform