We help IT Professionals succeed at work.

SelectedValue Property

When I click on update on my form, I get the error.
Watch Question

Software Applications Developer / Integrator
This error occurs when you assign a selectedValue to your dropdown that isn't already existing in the dropdown list.

For example: your dropdown has values of a, b, and c. but you assign it d as follows

DropDownList5.SelectedValue = "d"

You will get an error as you see.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.