摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; using System.IO; using System.Collections.Specialized; using zhjy.BLL.w_disk; using zh... 阅读全文
posted @ 2017-11-18 22:34 _York 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 基于Bootstrap表单验证 GitHub地址:https://github.com/chentangchun/FormValidate 使用方式: 1.CSS样式 阅读全文
posted @ 2017-11-16 16:47 _York 阅读(612) 评论(1) 推荐(0) 编辑
摘要: 1、添加log4Net配置文件log4net.config 配置文件属性设置为: 配置如下: 2.在数据库创建SysLogs表 3.webConfig 配置 4.应用程序启动时设置配置项 Global.asax 5.日志写入示例 阅读全文
posted @ 2017-11-16 13:23 _York 阅读(2179) 评论(0) 推荐(0) 编辑
摘要: 接口调用: http://wthrcdn.etouch.cn/WeatherApi?city=昆明 或者 http://wthrcdn.etouch.cn/WeatherApi?citykey=citycode 阅读全文
posted @ 2017-11-15 16:02 _York 阅读(254) 评论(0) 推荐(0) 编辑
摘要: public static class LinqOrderEx { private static IOrderedQueryable OrderingHelper(IQueryable source, string propertyName, bool descending, bool anotherLevel) { Paramet... 阅读全文
posted @ 2017-11-14 12:02 _York 阅读(526) 评论(0) 推荐(0) 编辑
摘要: //js将表单序列化成对象 $.fn.serializeObject = function () { var $els = $(this).find("[name]"); var formData = {}; var len = $els.length; for (var i = 0; i 0) { for (var i = 0; i ' + d... 阅读全文
posted @ 2017-11-14 09:15 _York 阅读(250) 评论(0) 推荐(0) 编辑
摘要: jquery判断checked的三种方法:.attr('checked): //看版本1.6+返回:”checked”或”undefined” ;1.5-返回:true或false.prop('checked'): //16+:true/false.is(':checked'): //所有版本:tr 阅读全文
posted @ 2017-11-14 09:14 _York 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 使用示例: HttpGet返回数组:[{Id:1,ParentId:-1},{Id:2,ParentId:1}] 阅读全文
posted @ 2017-11-13 13:44 _York 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 一、自定义特性 二、在Action上面加入特性 三、继承ActionFilterAttribute实现LogFilter日志 四、在App_Start文件夹下面加入全局日志过滤器 阅读全文
posted @ 2017-11-08 11:37 _York 阅读(1531) 评论(0) 推荐(0) 编辑
摘要: echars关系图 阅读全文
posted @ 2017-11-03 14:37 _York 阅读(945) 评论(0) 推荐(0) 编辑