What exactly is improved in MVC3 pertaining to validation?

后端 未结 1 1792
小蘑菇
小蘑菇 2021-01-26 07:23

In asp.net-mvc-3 - Improved model validation with unobtrusive JavaScript and jQuery support.

I think, unobtrusive-validation is already present in asp.net-mvc-2

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-26 08:16

    I think, unobtrusive-validation is already present in asp.net-mvc-2

    Ah no, it wasn't.

    Question : What exactly is improved in MVC3 pertaining to client validation?

    The Ajax.* helpers are now using HTML5 data-* attributes which are interpreted by the jquery unobtrusive validation scripts. In ASP.NET MVC 2 the Ajax.* helpers were polluting the HTML with javascript calling to the absolute legacy Microsoft*.js scripts.

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