I am converting an Access database to an ASP web page. One field contains a list of people. I want the dropdown to only contain certain people, but there is already allot of names that are not those certain people. I want to allow the old data to stay in the database, but any new ones, or if they edit and change the current name, I want it to have to be in the list, but if they don't change it the name, I don't want it to throw an error.
I have my SelectedValue='<%#bind("RequestedBy")%>'.
If the data in the database is in the list, it works fine.
If the data in the field is not in the list, I get an error, because combobox has a selectedvalue which is invalid because it does not exist in the list of items.
How do I just ignore it if the name isn't in the list? I want the name to stay in the box, even if its not in the list. Only if I try to change it, do I want to have to choose from an item in the list.