I always use ModelState.IsValid
for check all of my model validation validated correctly in Server Side, but I think there is a limitation to use this. For example I define a Remote
Validation attribute, but if I disable javascript
then ModelState.IsValid
don't check Remote Validation and always return true, Where is the problem? this is a limitation for ModelState.IsValid
or is my fault? If necessary I can Add all my implementation.
相关问题
- How to dynamically load partial view Via jquery aj
- Entity Framework throws exception - Network Relate
- Date with SimpleDateFormat in Java
- Slow loading first page - ASP.NET MVC
- RegEx Max and Min length characters for a Text Box
相关文章
- Angular Material Stepper causes mat-formfield to v
- “Dynamic operations can only be performed in homog
- Why doesn't Django enforce my unique_together
- Change color of bars depending on value in Highcha
- Forward request from servlet to jsp
- How to get server path of physical path ?
- superclass mismatch for class CommentsController (
- X/Html Validator in PHP
This question has come around a few times. The answer is: it doesn't validate on the server-side, you have to perform the validation action yourself. See also following SO posts:
Of course, it would be nice to be able to validate it anyway on the server-side. Luckily some nice guy made an implementation for it. You can find his short blog post: http://www.tugberkugurlu.com/archive/asp-net-mvc-server-side-remote-validation .