摘要: public static long ConvertDataTimeLong(DateTime dt) { DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); TimeSpan toNow = dt.Subtract(dtStart); ... 阅读全文
posted @ 2018-08-17 10:20 萝卜and青菜 阅读(2196) 评论(0) 推荐(0) 编辑
摘要: 一.组件引用 1.首先nuget中引入log4net 2.项目AssemblyInfo.cs引入log4net, 文件路径:项目/Properties/AssemblyInfo.cs 注:如果不在此引入直接在global中引入,在不部署到IIS中时本地测试是可以用的,如果要部署到IIS中则需要添加, 阅读全文
posted @ 2018-08-14 11:50 萝卜and青菜 阅读(242) 评论(0) 推荐(0) 编辑
摘要: LayUI 下载地址: 引用: layui.css layui.js 参考文章: JqPaginator 可以支持多种样式风格 引用: 代码: 阅读全文
posted @ 2018-05-30 23:56 萝卜and青菜 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 需要导入的js文件,顺序不可变 jquery.ui.widget.js jquery.iframe-transport.js jquery.fileupload.js jquery.fileupload-process.js jquery.fileupload-validate.js jquery. 阅读全文
posted @ 2018-05-30 23:03 萝卜and青菜 阅读(1248) 评论(0) 推荐(0) 编辑
摘要: c#一般处理程序中继承的是IHttpHandler 在里面无法访问session HttpContext.Current.Session返回的是NULL, 处理方法 : 1,导入:using System.Web.SessionState; 2,使用接口:IRequiresSessionState 阅读全文
posted @ 2016-09-02 16:29 萝卜and青菜 阅读(200) 评论(0) 推荐(0) 编辑