G
Guest
Programming ASP.NET w/ C#, i have a DropDownList control that when selected,
fires the SelectedItemChanged event. The "values" for this control are
numbers (although stored as strings). For example:
"Green", "100"
"Red", "203"
"Etc.", "545"
Is there any way to force a cast operation to convert these strings "values"
to integers? The SelectedValue property of the drop down control determines
the count for a loop sequence.
If this is not possible, can someone recommend a way to determine which
numerical value is selected?
Thanks,
fires the SelectedItemChanged event. The "values" for this control are
numbers (although stored as strings). For example:
"Green", "100"
"Red", "203"
"Etc.", "545"
Is there any way to force a cast operation to convert these strings "values"
to integers? The SelectedValue property of the drop down control determines
the count for a loop sequence.
If this is not possible, can someone recommend a way to determine which
numerical value is selected?
Thanks,