随笔 - 470  文章 - 6  评论 - 20  阅读 - 90万
12 2011 档案
js cookeie
摘要:<html><head><title>JSCookie</title></head><script>//JS操作cookies方法!//写cookiesfunctionsetCookie(name,value){varDays=30;varexp=newDate();exp.setTime(exp.getTime()+Days*24*60*60*1000);document.cookie=name+"="+escape(value)+";expires="+exp.toGMTStri 阅读全文
posted @ 2011-12-14 08:09 chen110xi 阅读(236) 评论(0) 推荐(0) 编辑
js获取网站根路径(站点及虚拟目录),获得网站的根目录或虚拟目录的根地址
摘要://js获取网站根路径(站点及虚拟目录),获得网站的根目录或虚拟目录的根地址 function getRootPath(){ var strFullPath=window.document.location.href; var strPath=window.document.location.pathname; var pos=strFullPath.indexOf(strPath); var prePath=strFullPath.substring(0,pos); var postPath=strPath.substring(0,strPath.substr(1).indexOf(' 阅读全文
posted @ 2011-12-06 09:27 chen110xi 阅读(4907) 评论(0) 推荐(0) 编辑
Android 开发学习资源
摘要:http://www.verycd.com/topics/2892330/http://www.verycd.com/topics/2900036/ 阅读全文
posted @ 2011-12-06 09:12 chen110xi 阅读(135) 评论(0) 推荐(0) 编辑
sharepoint 页面使用javascript出错解决办法
摘要:在IIS里修改web.config,增加下面一行设置就可以解决问题。 <PageParserPaths> <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" /> </PageParserPaths>http://verytiny.iteye.com/blog/506077 阅读全文
posted @ 2011-12-05 16:51 chen110xi 阅读(155) 评论(0) 推荐(0) 编辑
C#中海量数据的批量插入和更新
摘要:对于海量数据的插入和更新,ADO.NET确实不如JDBC做到好,JDBC有统一的模型来进行批操作.使用起来非常方便:PreparedStatement ps = conn.prepareStatement("insert or update arg1,args2....");然后你就可以for(int i=0;i<1000000000000000;i++){ps.setXXX(realArg);.....ps.addBatch();if(i%500==0){//假设五百条提交一次ps.executeBatch();//clear Parame Batch}}ps.ex 阅读全文
posted @ 2011-12-02 09:01 chen110xi 阅读(1110) 评论(0) 推荐(1) 编辑
(转贴)如何用C#压缩access数据库
摘要:c#压缩ACCESS文件因为自己的空间服务商上传文件有大小限制,我怕以后数据库太大了无法拉下来压缩,在网上找到以下解决方法先引用COM Microsoft Jet and Replication Objects X.X librarystring strS="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\zjren\\db\\my.mdb;";//需要被压缩的文件string strT="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\zjren\\db\\my_ 阅读全文
posted @ 2011-12-02 08:36 chen110xi 阅读(264) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示