"Martin Walke" <martin.walke_no_spam@vega_dot_co_dot_uk> wrote:
>Hi all,
>
>I have an ASP application where I need to not only read the selected item
>from a combo box on a web page but also all the options in the combo box.
>Can someone point me in the right direction.
>
>I can obviously use request.querystring() or request.form() to get the
>selected value but not sure about how to get the options.
You can't. When the form is submitted, one value is transmitted for a
select group: the "value" attribute of the selected option. Nothing
else is sent.
If you want to know the other options in the select group, you'll have
to do it another way: store them in a database, in the session object,
something like that. And bear in mind, that what's transmitted for the
selected option is not what the user sees, it's the "value" attribute.
--
Tim Slattery
MS MVP(DTS)
http://members.cox.net/slatteryt