I have a drop down list that pulls data from a database to show some of its options:
try this
String taskID = DropDownList3.SelectedItem.Value;
any way you can use either
dropdown3.selectedvalue
or
dropdown3.selecteditem.value
You can use the SelectedValue property:
SelectedValue
// to set DropDownList3.SelectedValue = "1"; // to read string value = DropDownList3.SelectedValue;