ASP.NET MVC ValidationSummary For Client Side Validation

后端 未结 3 1255
太阳男子
太阳男子 2021-01-17 02:19

Our server side validation (via data annotations) is working great and posts the errors in our ValidationSummary how we like it. The client side validation also works, howe

3条回答
  •  礼貌的吻别
    2021-01-17 02:45

    You should verify that for the model object being validated that the .Error property from the IDataErrorInfo interface is not String.Empty. This might cause the behaviour you seem to be having.

提交回复
热议问题