C
C#2y ago
EliasGPS

✅ Problem with updating an object.

I'm working in ASP.NET MVC, and i'm trying to change a boolean value from false to true. I use a form where i can change this value to my controller but it doens't work. I think there is a problem with my ModelState.IsVaid because it is saying that it is false.
5 Replies
EliasGPS
EliasGPSOP2y ago
this is how my form looks like:
EliasGPS
EliasGPSOP2y ago
EliasGPS
EliasGPSOP2y ago
than when i submit i will go the the controller:
EliasGPS
EliasGPSOP2y ago
EliasGPS
EliasGPSOP2y ago
every time when i submit the form the ModelState.IsValid is false idk why
Want results from more Discord servers?
Add your server