I always use ModelState.IsValid
to verify that the entire validation of my model on the server side is correct, but I think there is a restriction on its use. For example, I define the Remote
Validation attribute, but if I turn off javascript
, then ModelState.IsValid
does not check the remote confirmation and always return true, where is the problem? Is this a limitation for ModelState.IsValid
or is this my mistake? If necessary, I can add my entire implementation.
source share