摘要: public void StreamToFile(Stream stream,string fileName) { // 把 Stream 转换成 byte[] byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.L 阅读全文
posted @ 2017-08-08 13:24 田坤坤 阅读(9486) 评论(0) 推荐(0)
摘要: /* 将图片转换为64位编码 */ //找到文件夹 System.IO.DirectoryInfo dd = new System.IO.DirectoryInfo("C://qq"); //得到该文件夹下所有的文件 System.IO.FileInfo[] file = dd.GetFiles() 阅读全文
posted @ 2017-08-08 13:23 田坤坤 阅读(1452) 评论(0) 推荐(0)
摘要: /// 将 Stream 转成 byte[] public byte[] StreamToBytes(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); // 设置 阅读全文
posted @ 2017-08-08 13:22 田坤坤 阅读(218) 评论(0) 推荐(0)
摘要: select len(replace(字段名A,';','--'))-len(字段名A) from table表名 阅读全文
posted @ 2017-08-08 13:21 田坤坤 阅读(3068) 评论(0) 推荐(0)
摘要: System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5") 阅读全文
posted @ 2017-08-08 13:18 田坤坤 阅读(254) 评论(0) 推荐(0)
摘要: System.Web.HttpContext.Current.Server.MapPath("虚拟路径") 阅读全文
posted @ 2017-08-08 13:16 田坤坤 阅读(1835) 评论(0) 推荐(0)
摘要: Serv-U,是一种被广泛运用的FTP服务器端软件,支持3x/9x/ME/NT/2K等全Windows系列。可以设定多个FTP服务器、限定登录用户的权限、登录主目录及空间大小等,功能非常完备。 它具有非常完备的安全特性,支持SSl FTP传输,支持在多个Serv-U和FTP客户端通过SSL加密连接保 阅读全文
posted @ 2017-08-08 10:12 田坤坤 阅读(4070) 评论(0) 推荐(0)
摘要: string转byte[]:byte[] byteArray = System.Text.Encoding.Default.GetBytes ( str ); byte[]转string:string str = System.Text.Encoding.Default.GetString ( by 阅读全文
posted @ 2017-08-07 18:13 田坤坤 阅读(451) 评论(0) 推荐(0)
摘要: 网页可见区域宽:document.body.clientWidth 网页可见区域高:document.body.clientHeight 网页可见区域宽:document.body.offsetWidth (包括边线的宽) 网页可见区域高:document.body.offsetHeight (包括 阅读全文
posted @ 2017-08-07 18:13 田坤坤 阅读(629) 评论(0) 推荐(0)
摘要: //合并相同行$.extend($.fn.datagrid.methods, { autoMergeCells: function (jq, fields) { return jq.each(function () { var target = $(this); if (!fields) { fie 阅读全文
posted @ 2017-08-07 18:12 田坤坤 阅读(453) 评论(0) 推荐(0)