Setting up DropDownList control to accomodate invalid values.
Does your dropdown control return messages like
DropDownList has a SelectedValue which is invalid because it does not exist in the list of item
Here’s an example of how to fix this
1 | <asp:DropDownList |
I added AppendDataBoundItems, OnDataBinding, and an extra ListItem
Then I created the OnDataBinding function
1 | Protected Sub ddl_Edit_codesLicensesAndCertsId_DataBinding(sender As Object, e As EventArgs) |
References:
https://blogs.uw.edu/earnshaw/2015/02/18/selected-value-invalid/