摘要: Web.config 下<system.webServer> 节点下配置 设置允许跨域传递Cookie 前端 请求的时候需设定:withCredentials = true; 设置了widthCredentials为true的请求中会包含远程域的所有cookie 阅读全文
posted @ 2017-11-22 10:41 _York 阅读(2909) 评论(0) 推荐(1) 编辑
摘要: /// /// 加密 /// public static class Encrypting { #region 使用对称加密、解密 private static string GetEncryptKey() { return ConfigurationManager.AppSettin... 阅读全文
posted @ 2017-11-21 13:21 _York 阅读(651) 评论(0) 推荐(1) 编辑
摘要: JavaScript-Errors-Notifier_v2.1.7 下载地址 安装方法: http://chromecj.com/utilities/2014-09/181.html 设置方式: 阅读全文
posted @ 2017-11-21 09:51 _York 阅读(1529) 评论(0) 推荐(0) 编辑
摘要: 使用SharpZipLib插件 插件地址:http://icsharpcode.github.io/SharpZipLib/ 阅读全文
posted @ 2017-11-18 23:12 _York 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1、 在表单需要提交Html的页面头部加入 ValidateRequest="false" 2、webConfig 的 <system.web> 节点下配置 阅读全文
posted @ 2017-11-18 23:09 _York 阅读(1158) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(614) 评论(1) 推荐(0) 编辑
摘要: 1、添加log4Net配置文件log4net.config 配置文件属性设置为: 配置如下: 2.在数据库创建SysLogs表 3.webConfig 配置 4.应用程序启动时设置配置项 Global.asax 5.日志写入示例 阅读全文
posted @ 2017-11-16 13:23 _York 阅读(2207) 评论(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) 编辑