We help IT Professionals succeed at work.

SelectedValue Property

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

Software Applications Developer / Integrator
BRONZE EXPERT
Commented:
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.