DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByValue())
'DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf(DropDownList1.Items.FindByText())
I post this because I can never remember how to do this simple thing (happens a lot these days...)
1 comment:
DropDownList1.Items.FindByValue().Selected = True
Post a Comment