摘要: MVC3 View视图的几种常用验证 /// /// 热值 /// [Display(Name = "热值")] [Required(ErrorMessage = "必填")] //指定数据字段值的数值范围约束 [Range(0, 9999, ErrorMessage = "格式有误")] public decimal? HEATVALUE //日期、时间、货币、Url的验证,此为货币验证 [DataType(System.ComponentModel... 阅读全文
posted @ 2014-04-08 11:05 疯子艾云 阅读(196) 评论(0) 推荐(0) 编辑