摘要: http://192.168.1.130/Assistant/ShopManager/Shop.aspx string url= Request.ApplicationPath == "/" ? ".." : Request.ApplicationPath; Response.Redirect(ur 阅读全文
posted @ 2017-08-01 14:06 哈佛 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 去除重复数据 ROW_NUMBER() OVER ( PARTITION BY os.OrderID ORDER BY os.ID DESC ) AS num 阅读全文
posted @ 2017-06-20 15:39 哈佛 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 方法一: AssemblyInfo.cs 添加 [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")] 方法二: Global.asax 添加 protected void Application_Start 阅读全文
posted @ 2017-05-11 17:39 哈佛 阅读(162) 评论(0) 推荐(0) 编辑
摘要: function AA(callback){ alert('AA'); if ($.isFunction(callback)) { callback(); } } function BB(){ alert('BB'); } //执行完AA再执行BB $(document).ready(function () { AA(funct... 阅读全文
posted @ 2017-04-20 16:06 哈佛 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 原创作品,转载请注明出处:http://www.cnblogs.com/lclblog/p/6701814.html 阅读全文
posted @ 2017-04-13 15:06 哈佛 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一般处理程序 IIS web.config 写上配置基本上能解决跨域问题(既API所在服务器) 如果web.config不增加 需要增加以下代码 指定那个域可以访问 此接口 阅读全文
posted @ 2017-03-28 17:17 哈佛 阅读(259) 评论(0) 推荐(0) 编辑
摘要: DateTime dtTarget = DateTime.Now; //日 dtTarget.ToShortDateString(); //月 dtTarget.AddDays(-DateTime.Now.Day + 1).ToShortDateString(); dtTarget.AddMonths(1).AddDays(-dtTarget.AddMonth... 阅读全文
posted @ 2017-03-21 16:43 哈佛 阅读(241) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Json; using System.Text; using System.Web; using System.Xml; using System.Xml.Se... 阅读全文
posted @ 2017-03-15 15:39 哈佛 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 还是.csv靠谱,速度佳。.xls就是个坑货,除非有特殊要求。 直接下载文件 (有个小问题未解决,数据量过大,会在最后出现一段乱码) 分块下载 阅读全文
posted @ 2017-02-16 15:28 哈佛 阅读(4750) 评论(0) 推荐(2) 编辑
摘要: /// /// 返回List /// /// Model类型 /// Model类型 /// /// public static List PutAll(T entity, DataSet ds) where T : new() { try { List lists... 阅读全文
posted @ 2017-01-24 16:05 哈佛 阅读(1379) 评论(0) 推荐(0) 编辑