Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining a Value from the DropDownList
Message
From
03/05/2004 09:14:00
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00900311
Message ID:
00900351
Views:
31
>>I need to obtain the value displayed in a DropDownListBox.
>>
>>How can I obtain the value displayed or selected within the >DropDownListbox? I thought it would be something simple like >DropDownListbox.value, but apparently that is too simple.
>
>Bill,
>
>I'm assuming this is a web dropdownlist...
>
>If you want the index of the selected item use something like:
>
>
>mySelectedIndex = ddlMyDropDownList.SelectedItem.Value
>
>
>To get the text of the selected item use something like this:
>
>
>mySelectedText = ddlMyDropDownList.SelectedItem.Text
>
>
>It is simple, but the terminology can throw you off (as it did me <g>).
>
>Regards,
>Carl.

Thanks again, Carl.
Bill Benton
Senior Systems Analyst
Nuvell Financial Services
Previous
Reply
Map
View

Click here to load this message in the networking platform