摘要: MVC4设置@Html.BeginForm的ID 阅读全文
posted @ 2018-02-28 15:31 !opts 阅读(229) 评论(0) 推荐(0) 编辑
摘要: var LayerManage = { CommonMethod: null, OpenWindLayer: function (title, width, height, htmlcontent) { layer.open({ type: 1 , area: [width, height] , t 阅读全文
posted @ 2018-02-28 13:52 !opts 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Layer弹窗 阅读全文
posted @ 2018-02-28 13:46 !opts 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: 一、错误排查步骤 1.排查错误之前请先默念三声:微软老大万岁! 坚定一个信念:微软是不会错的,如果错了,那肯定是我的代码写的有问题。不要产生一些质疑微软产品的念头,而是将目光转向代码,按照清晰的思路去慢慢排查。 2.如果最后全部都排查完了,仍然没有找到错误的原因,那就回头看看,哪些你认为一定不会出错 阅读全文
posted @ 2018-01-05 14:28 !opts 阅读(111) 评论(0) 推荐(0) 编辑
摘要: public virtual ActionResult AsyncUpload() { //we process it distinct ways based on a browser //find more info here http://stackoverflow.com/questions/ 阅读全文
posted @ 2017-12-29 17:17 !opts 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 方法一: //取出第一条 var first = allMenuList.Where(e => e.ParentId == 0).ToList(); //Foreach递归 allMenuList.ForEach(e => e.ChildrenItem = allMenuList.Where(a = 阅读全文
posted @ 2017-12-08 16:48 !opts 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 我在这里定义了一个List泛型的扩展方法 public static List<string> GetExten(this List<string> obj) { return new List<string> { }; } 那么我在使用List泛型的时候就可以点出来这个扩展方法 new List< 阅读全文
posted @ 2017-11-23 15:30 !opts 阅读(310) 评论(0) 推荐(0) 编辑
摘要: public ActionResult DownLoad() { var download = new Download(); using (DataClasses1DataContext db = new DataClasses1DataContext()) { download = db.Dow 阅读全文
posted @ 2017-11-21 11:23 !opts 阅读(147) 评论(0) 推荐(0) 编辑
摘要: BACKUP DATABASE [nopCommerce] TO DISK = 'C:\database_20171114.bak' WITH FORMAT SQLServer备份数据库到C盘。通过使用WITH FORMAT可以做到覆盖任何现有的备份和创建一个新的媒体集。可以避免一些由于备份设置产生 阅读全文
posted @ 2017-11-14 16:27 !opts 阅读(161) 评论(0) 推荐(0) 编辑
摘要: var gridModel = new DataSourceResult { Data = customers.Select(PrepareCustomerModelForList), Total = customers.TotalCount }; protected virtual Custome 阅读全文
posted @ 2017-11-13 18:24 !opts 阅读(378) 评论(0) 推荐(0) 编辑