I have one Dropdownlist control in my asp.net project and the item where add while runtime.
The DropdownList has items like given below.
("itemcode" - "itemname")
1003 - foo
1008 - bar
1005 - some value5
1010 - some value10
So now what is need is i want to set the SelectedItem is item which STARTSWITH the code "1008" using c# or vb.net.
I dont want to use SelectedIndex because some time the index locaition of the item will be changed.