阅读背景:

ASP.NET MVC:DataAnnotations - 显示一条错误消息,指示字段必须是数字

来源:互联网 

There appears to be something of a hole in the way DataAnnotations works in that a user entering in some text into a field that will go into an int will never reach the DataAnnotations code. It kicks off a model binding error and displays the error to the user "The value 'a' is not valid for the XXXX field."There appears to be something of a hole in the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: