This is a migrated thread and some comments may be shown as answers.

ModelState.IsValid is false when not selecting a value from cascaded dropdowns

0 Answers 147 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 09 May 2019, 12:30 AM

I noticed that my ModelState becomes invalid if the user doesn't select any value from a cascaded set of dropdowns.  Once you select a value, it becomes valid.  How do I fix this, and actually save my model if the user doesn't actually select anything?  Not selecting anything just means I won't save anything on Post.

 

thanks

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Chris
Top achievements
Rank 1
Share this question
or