小编Dig*_*mar的帖子

HTML5音频元素在IE10中不起作用,但在Chrome中可以使用.为什么?

HTML5音频在IE10中不起作用,但适用于Chrome.任何的想法?

HTML5音频IE10问题

使用的HTML如下,

在此输入图像描述

audio html5 internet-explorer-10

8
推荐指数
2
解决办法
8317
查看次数

如何在Asp.Net MVC中显示DisplayFormat属性的自定义错误消息?

如何显示自定义错误消息

[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
Run Code Online (Sandbox Code Playgroud)

我的模型中的代码如下,

[Display(Name = "When was that document issued?")]
[DataType(DataType.Date, ErrorMessageResourceName = "DocumentIssueDate_DataType",ErrorMessageResourceType = typeof(CustomErrorMessages))]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
 public DateTime? DocumentIssueDate { get; set; }
Run Code Online (Sandbox Code Playgroud)

在我的视图中,当我在日期文本框中输入201时,我收到以下错误消息.如何修改以下错误消息.

值"201"对DocumentIssueDate无效.

data-annotations asp.net-mvc-3

5
推荐指数
1
解决办法
5077
查看次数