开发者

How to set the default error message in mvc2 validation

开发者 https://www.devze.com 2022-12-30 10:25 出处:网络
How can I change the default error message for required rule validation for exampl开发者_开发百科e?You can check the Localizing ASP.NET Validation blog post of Phil Haack.You can write your own MyRequ

How can I change the default error message for required rule validation for exampl开发者_开发百科e?


You can check the Localizing ASP.NET Validation blog post of Phil Haack.


You can write your own MyRequiredAttribute in wich change the default error message and use it.

0

精彩评论

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