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