Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the selected data value from the drop down list
Message
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00714584
Message ID:
00714586
Views:
12
This message has been marked as the solution to the initial question of the thread.
Hi Kirk,

To get the value, you use the SelectedItem property like the following:
DropDownList1.SelectedItem.Value
>I have a DDL on a webform, it is populated from a sql query, and has two fields, the description (DataTextField) and Record ID (DataValueField).
>
>After the user selects from the drop down list, how do I get the datavaluefield for use in the next query?
>
>Thanks
>Kirk
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform