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

后端 未结 2 871
[愿得一人]
[愿得一人] 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: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

提交回复
热议问题