2013年7月23日

[转]将input file的选择的文件清空

摘要: 本文转自:http://hi.baidu.com/xiongshihu/item/125c79b47632e794194697f5上传文件时,选择了文件后想清空文件路径的两种办法:JS代码 第一种: (display:none时不能用)var obj = document.getElementById('fileupload') ; obj.select(); document.selection.clear(); 第二种:(无论display:none或block都可以用)var obj = document.getElementById('fileupload 阅读全文

posted @ 2013-07-23 18:30 freeliver54 阅读(667) 评论(0) 推荐(0)

[转]MVC自定义数据验证(两个时间的比较)

摘要: 本文转自:http://www.cnblogs.com/zhangliangzlee/archive/2012/07/26/2610071.htmlModel:public class ModelDateTime { private const string strErrorNotNull = "*必填项"; [DisplayName("开始时间")] [Required(ErrorMessage = strErrorNotNull)] public DateTime StartDate { get; set; } [... 阅读全文

posted @ 2013-07-23 14:02 freeliver54 阅读(437) 评论(5) 推荐(0)

导航