开发者

MVC2 ValidationSummary and Client side Validation

开发者 https://www.devze.com 2022-12-26 14:08 出处:网络
I want to have the ValidationSummary errors displayed during Client Side valid开发者_运维百科ation. Currently the validation messages are only appears next to the field during client side validation.

I want to have the ValidationSummary errors displayed during Client Side valid开发者_运维百科ation. Currently the validation messages are only appears next to the field during client side validation. I use….

  1. MicrosoftAjax.js
  2. MicrosoftMvcAjax.js
  3. MicrosoftMvcValidation.js

as my client side libraries.

There is a solution for jQuery Validation Library which is in the thread… ASP.NET MVC ValidationSummary For Client Side Validation

Is there an easy way to do this?

I used had xVal working DataAnnotation and it was very easy enable client side validation for the validation summary.

E.g

Is there way to do this in MVC2 using MicrosoftAjax?


The only solution that I see is specified in the below article. Honestly why would anyone try getting validation summary control working for client side with MicrosoftAjax when there is a nice solution.

http://geekswithblogs.net/stun/archive/2010/02/27/asp.net-mvc-client-side-validation-summary-with-jquery-validation-plugin.aspx

My 2cents.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号