Client-side model-level or form level validation with ASP.NET MVC3

后端 未结 2 843
[愿得一人]
[愿得一人] 2021-01-13 10:26

I am using ASP.NET MVC3 with jQuery Validate + the unobtrusive validation support that comes with MVC3. Works great for almost everything, but I have one view where there i

相关标签:
2条回答
  • 2021-01-13 11:06

    I would say what you are looking for is the new support for Remote Validation in Asp MVC3. Here is an article describing a common scenario, hopefully you can extend it yourself. Otherwise there are probably other articles around explaining it even better ;-)

    http://www.aaronstannard.com/post/2010/12/07/remote-validation-asp-net-mvc3.aspx

    /Victor

    0 讨论(0)
  • 2021-01-13 11:17

    You should ALWAYS validate again on the server. Its really easy to circumvent javascript validation.

    Rule #1 of Web Development: NEVER TRUST USER INPUT

    0 讨论(0)
提交回复
热议问题