摘要: public void HttpDownload(string url, string path, ResourceType type) { using (var client = new WebClient()) { client.Headers.Add("User-Agent", "Mozill 阅读全文
posted @ 2016-02-29 14:54 mysuper 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 对数据库的备份和恢复操作,Sql语句实现 /// </summary> /// <param name="cmdText">实现备份或恢复的Sql语句</param> /// <param name="isBak">该操作是否为备份操作,是为true否,为fals 阅读全文
posted @ 2016-01-21 16:26 mysuper 阅读(461) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.DirectoryServices;using System.Linq;using System.Text;using System.Threading.Tasks;namespac... 阅读全文
posted @ 2016-01-14 15:42 mysuper 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: 1.引用两个jsCodaxy.Xlio.dllCodaxy.Xlio.XmlSerializers.dll2.导出 public string EntityListToExcel(string physicalPath, IList enList, string sheetName) ... 阅读全文
posted @ 2016-01-09 16:22 mysuper 阅读(192) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2016-01-09 12:15 mysuper 阅读(3433) 评论(0) 推荐(0) 编辑
摘要: ///<summary> /// 通过NetworkInterface读取网卡Mac ///</summary> ///<returns></returns> public static List<string> GetMacByNetworkInterface() { List<string> m 阅读全文
posted @ 2016-01-08 15:44 mysuper 阅读(2223) 评论(0) 推荐(0) 编辑
摘要: private static void ReadFromFile() { FileStream fsForRead = new FileStream("c9a78c8a-29b0-410d-9c27-58e6be5dbccd.wav", FileMode.Open... 阅读全文
posted @ 2016-01-07 12:40 mysuper 阅读(10779) 评论(0) 推荐(0) 编辑
摘要: var str = 'aaa.fda.asp'; var arr = str.split('.');//通过\分隔字符串,成字符串数组 var last= arr[arr.length - 1];//取最后一个,就是文件名 str.substr(0, str.length-last.length-... 阅读全文
posted @ 2016-01-05 14:44 mysuper 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: //将选择标签 var addCode = function () { var codes = []; var elements = document.getElementsByName("label"); for (... 阅读全文
posted @ 2015-12-15 15:01 mysuper 阅读(720) 评论(0) 推荐(0) 编辑
摘要: /// /// 服务器端Base64编码 /// /// /// public static string base64Encode(string data) { try ... 阅读全文
posted @ 2015-12-01 13:28 mysuper 阅读(1225) 评论(0) 推荐(0) 编辑