ASP .Net MVC 3 unobtrusive custom client validation

前端 未结 2 521
花落未央
花落未央 2020-12-04 13:33

I have used the jquery validation plug in for a couple years now but this is my first effort to mixing with MVC 3 unobtrusive validation.

Information on the client s

2条回答
  •  被撕碎了的回忆
    2020-12-04 14:12

    You need ValidateFor in addition to TextBoxFor. I can't tell from your question if you've already done that or not. You also need EnableClientValidation before the form.

提交回复
热议问题