I changed the code below to use SelectedItem. I wanted to remove the loop.
But my one line of code doesnt work. I see the value but when the page load, the ddl still has "<select item>".
what am I missing:
my code: ddlArea.SelectedItem.Value
Orig code below:
foreach (ListItem item in ddlArea.Items)
if (item.Text == area.Name)
ddlArea.SelectedValue = item.Value;