I populate a ddlFrequency dropdownlist from a table, set the text and now just want to get it's corresponding value.
The drop down list - 2 entries:
immediate 1
daily 2
I set the drop down as default to daily.
ddlFrequency.SelectedItem.Text = "Daily"
How to I get the value?
If I do
ddlFrequency.SelectedItem.Value.ToString().
I get 1 when I want 2.
asp.nettag to your question if you notice.