摘要: public static class JsonConvert { public static string ObjectToJson(object obj) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj.GetType())... 阅读全文
posted @ 2018-03-09 16:10 caolingyi 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.cnblogs.com/edisonchou/p/4848131.html https://www.cnblogs.com/willick/p/4177977.html#header03 1、线程 System.Threading.Thread类 Console.Wr 阅读全文
posted @ 2018-03-09 16:02 caolingyi 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.ijquery.cn/?p=866 下载demo 其实使用方法很简单,只需要在头部加载一个JS就可以。如下: 1、视频引用方法(type="video/mp4",type="video/ogg",type="application/x-shockwave-flash") 阅读全文
posted @ 2018-03-09 14:27 caolingyi 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1、多文件下载并压缩 1 public class DownLoadZip 2 { 3 public static void Download(IEnumerable<string> files, string zipFileName, HttpResponse response) 4 { 5 6 阅读全文
posted @ 2018-03-09 13:55 caolingyi 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/w200221626/article/details/52169250 json 文件 格式: 1 { 2 "total": 1, 3 "page": 1, 4 "records": 1, 5 "costtime": "100", 6 "rows": 阅读全文
posted @ 2018-03-09 13:40 caolingyi 阅读(4568) 评论(0) 推荐(0) 编辑
摘要: 1.使用QueryString, 如....?id=1; response. Redirect(....?id=1) window.location.href=....?id=1 2.使用Session变量 3.Cookie传值 4.Application传值 5.使用Server.Transfer 阅读全文
posted @ 2018-03-09 13:30 caolingyi 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.cnblogs.com/johnsmith/archive/2012/12/03/2799795.html 参考:https://www.cnblogs.com/dotnet261010/p/6513618.html 1、实体类转换成XML 2、将XML转换成实体类 3 阅读全文
posted @ 2018-03-09 12:34 caolingyi 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.cnblogs.com/wuhuacong/p/6518748.html https://www.cnblogs.com/RainbowInTheSky/p/5557936.html https://www.cnblogs.com/TianFang/p/3430169 阅读全文
posted @ 2018-03-08 15:33 caolingyi 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.jq22.com/jquery-info5697 简单使用方法 引用 html js 配置信息 pageCount:总页数(默认值:9) totalData:数据总条数(默认值:0) showData:每页展示条数(默认值:0) current:当前第几页(默认值:1) 阅读全文
posted @ 2018-03-08 11:39 caolingyi 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.entityframeworktutorial.net/code-first/migration-in-code-first.aspx 实体框架Code-First在EF 4.3之前具有不同的数据库初始化策略,如CreateDatabaseIfNotExists,Drop 阅读全文
posted @ 2017-12-12 17:46 caolingyi 阅读(704) 评论(0) 推荐(0) 编辑