Reading Select control from server side which was modified on the client side

A

Azmarae

Hi,
I've got an html Select box on the client side for which I add the
Options/items on the client side. The options are created dynamically
through textbox and button controls on the same page.
When I submit the page, I want to be able to read all the
Options/items added to the select box. However, I do not see the
changes made. I keep seeing an empty select box from the server.
How can I pass the new options/items to the server side. Keep in mind
that I'd like to pass all the items for that select box and not just
the selected ones.

Thanks.
 
C

Carlos Campos

To do that, you must maintain in the server the html select data....(if you
are going every time to server)

In the other case, if you are not going to the server every click, you must
be saving the select data in other kind of tag, because the select tag only
upload its current value, not the list.

You can use a textarea, o use the select but using a hidden tag also
containing a comma-separated values.
 
A

Azmarae

Thank you Carlos.

Carlos Campos said:
To do that, you must maintain in the server the html select data....(if you
are going every time to server)

In the other case, if you are not going to the server every click, you must
be saving the select data in other kind of tag, because the select tag only
upload its current value, not the list.

You can use a textarea, o use the select but using a hidden tag also
containing a comma-separated values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top