随笔分类 - 技术点
工作中遇到的问题的解决方法。
摘要:转载自:http://www.guaik.com/cs/SOAREDF1IAIY7V2A.shtmpublicclassIdentityScope:IDisposable { //obtainsusertoken [DllImport("advapi32.dll",SetLastError=true)] staticexternboolLogonUser(stringpszUsername,stringpszDomain,stringpszPassword, intdwLogonType,intdwLogonProvider,refIntPtrphToken); //clo
阅读全文
摘要:今天部署站点时,一个弹出页怎么也弹不成功。大致代码如下<head runat="server"> <title>xxx</title> <base target="_self" /> <link href="../CSS/normal.css" type="text/css" rel="stylesheet" /> <script ...
阅读全文
摘要:今天花了一个上午终于完整的把FKCEditor使用起来了。记录下注意点和遇到问题的解决方法1、下载两个文件(http://ckeditor.com/download)FCKeditor 2.6.6、FCKeditor.Net 2.6.4(版本可能会继续更新,自己选择)2、将FCKeditor 2.6.6解压,把加压后的文件夹fckeditor拷贝到站点的根目录3、在站点根目录建一个文件夹取名FKC...
阅读全文
摘要:之前也写过很多次DataTable导出到Excel,用的基本上都是直接写单元格的形式:workSheet.Cells[x, y]=dt.Rows[i][j].ToString();在数据量小的时候这种方法看不出问题,但数据量大的时候,弊端就很明显了。我的数据量在2800行左右,这种导出方法用时在30秒左右。经过一番折腾,终于找到了一个可以高速导出的方法。关键部分就是:range.Value2=ob...
阅读全文

浙公网安备 33010602011771号