Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How can I separate FORM SELECT with multiple selections?

Reply
Thread Tools

How can I separate FORM SELECT with multiple selections?

 
 
Stian
Guest
Posts: n/a
 
      09-02-2004
Hi!

I have made a form with two SELECT LIST-boxes where the first is dynmically
filled when you enter the page, and then one can select multiple options
from the list and move across to the other box using javascript. Every
option in the list has an integer value.

The FORM is submitted with the POST method and received on an ASP page. I
then want to manage the selected options one by one. How can I separate
them?

It currently looks like this (with four selections from the box).
1, 5, 9, 10

I tried to manage this as a string, but was told that it was not a string.
Type mismatch: '[string: "1, 5, 9, 10"]'

Can anyone help med with some code that can separate these options for
further work?

Regards, Stian


 
Reply With Quote
 
 
 
 
Roji. P. Thomas
Guest
Posts: n/a
 
      09-02-2004
use Split to get them into an array


--
Roji. P. Thomas
Net Asset Management
https://www.netassetmanagement.com


"Stian" <> wrote in message
news:e0AZc.4610$g%...
> Hi!
>
> I have made a form with two SELECT LIST-boxes where the first is

dynmically
> filled when you enter the page, and then one can select multiple options
> from the list and move across to the other box using javascript. Every
> option in the list has an integer value.
>
> The FORM is submitted with the POST method and received on an ASP page. I
> then want to manage the selected options one by one. How can I separate
> them?
>
> It currently looks like this (with four selections from the box).
> 1, 5, 9, 10
>
> I tried to manage this as a string, but was told that it was not a string.
> Type mismatch: '[string: "1, 5, 9, 10"]'
>
> Can anyone help med with some code that can separate these options for
> further work?
>
> Regards, Stian
>
>



 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      09-02-2004
Stian wrote:
> Hi!
>
> I have made a form with two SELECT LIST-boxes where the first is
> dynmically filled when you enter the page, and then one can select
> multiple options from the list and move across to the other box using
> javascript. Every option in the list has an integer value.
>
> The FORM is submitted with the POST method and received on an ASP
> page. I then want to manage the selected options one by one. How can
> I separate them?
>
> It currently looks like this (with four selections from the box).
> 1, 5, 9, 10
>
> I tried to manage this as a string, but was told that it was not a
> string. Type mismatch: '[string: "1, 5, 9, 10"]'
>
> Can anyone help med with some code that can separate these options for
> further work?
>
> Regards, Stian


Show the line of code that caused that error.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Using separate classpaths for separate classes? Frank Fredstone Java 1 06-27-2006 06:46 AM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM
How to use several separate classes (separate files) to be executed in one class (another file) EvgueniB Java 1 12-15-2003 01:18 AM
Using Select with multiple separate nodes in XSL RanDeep XML 2 09-26-2003 04:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57