会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
哈佛
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2017年8月1日
虚拟目录公共定跳转
摘要: http://192.168.1.130/Assistant/ShopManager/Shop.aspx string url= Request.ApplicationPath == "/" ? ".." : Request.ApplicationPath; Response.Redirect(ur
阅读全文
posted @ 2017-08-01 14:06 哈佛
阅读(175)
评论(0)
推荐(0)
2017年6月20日
SQL 操作语句
摘要: 去除重复数据 ROW_NUMBER() OVER ( PARTITION BY os.OrderID ORDER BY os.ID DESC ) AS num
阅读全文
posted @ 2017-06-20 15:39 哈佛
阅读(120)
评论(0)
推荐(0)
2017年5月11日
log4net配置
摘要: 方法一: AssemblyInfo.cs 添加 [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")] 方法二: Global.asax 添加 protected void Application_Start
阅读全文
posted @ 2017-05-11 17:39 哈佛
阅读(171)
评论(0)
推荐(0)
2017年4月20日
JS顺序执行
摘要: 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 哈佛
阅读(438)
评论(0)
推荐(0)
2017年4月13日
DataTable转List<T>
摘要: 原创作品,转载请注明出处:http://www.cnblogs.com/lclblog/p/6701814.html
阅读全文
posted @ 2017-04-13 15:06 哈佛
阅读(205)
评论(0)
推荐(0)
2017年3月28日
Ajax跨域解决方案
摘要: 一般处理程序 IIS web.config 写上配置基本上能解决跨域问题(既API所在服务器) 如果web.config不增加 需要增加以下代码 指定那个域可以访问 此接口
阅读全文
posted @ 2017-03-28 17:17 哈佛
阅读(266)
评论(0)
推荐(0)
2017年3月21日
日期格式换算
摘要: 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 哈佛
阅读(282)
评论(0)
推荐(0)
2017年3月15日
序列化和反序列化
摘要: 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 哈佛
阅读(119)
评论(0)
推荐(0)
2017年2月16日
C#导出数据量大于100万【csv】
摘要: 还是.csv靠谱,速度佳。.xls就是个坑货,除非有特殊要求。 直接下载文件 (有个小问题未解决,数据量过大,会在最后出现一段乱码) 分块下载
阅读全文
posted @ 2017-02-16 15:28 哈佛
阅读(4934)
评论(0)
推荐(2)
2017年1月24日
DataSet转Model
摘要: /// /// 返回List /// /// Model类型 /// Model类型 /// /// public static List PutAll(T entity, DataSet ds) where T : new() { try { List lists...
阅读全文
posted @ 2017-01-24 16:05 哈佛
阅读(1387)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告