Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

Created Unassigned: MVC’s DefaultModelBinder does not Validate The Object [7177]

$
0
0
I'm using package fluentvalidation.mvc 5 for asp.net mvc 5.1.2 (vs 2013) and followed this tutorial
http://fluentvalidation.codeplex.com/wikipage?title=mvc&referringTitle=Documentation
Now I am having problem when I submit the form, MVC's DefaultModelBinder does not validate the object. I have register
```
FluentValidationModelValidatorProvider.Configure();
```
in global.asx, ClientValidationEnabled and UnobtrusiveJavaScriptEnabled is true in web.config.
I've also downloaded latest jquery.validation package, add to BundleConfig, and in its view I've added

```
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}

```

Viewing all articles
Browse latest Browse all 1917


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>