G
Guest
I have a dropdown of states that is populated from a table, that looks like
ddlb.DataValueField="StateCode" // ex: FL
ddlb.DataTextField="StateDescription" // ex: Florida
If I want to set the initial value I can use
ddlb.SelectedValue="Florida"
In other words, SelectedValue is the DataTextField
How do I set the initial value to the DataValueField?
ddlb.SelectedValue="FL" doesnt work (or is it just me?)
Thanks, Mark
ddlb.DataValueField="StateCode" // ex: FL
ddlb.DataTextField="StateDescription" // ex: Florida
If I want to set the initial value I can use
ddlb.SelectedValue="Florida"
In other words, SelectedValue is the DataTextField
How do I set the initial value to the DataValueField?
ddlb.SelectedValue="FL" doesnt work (or is it just me?)
Thanks, Mark