摘要: http://www.cnblogs.com/sunney/archive/2010/08/16/1800680.htmlC# 删除文件夹 yyyy-MM-dd HH : mm : ss .ffff 年 -月 -日时 :分 :秒 .毫秒datetime格式化处理: 阅读全文
posted @ 2010-08-17 13:44 wsenmin 阅读(178) 评论(0) 推荐(0) 编辑
摘要: View Code publicstaticclassSingletonProvider<T>whereT:new(){privatestaticTm_instance;privatestaticreadonlyobjectsync=newobject();///<summary>///不够构造函数的泛型单列///</summary>publicstaticTInstance{get{if(m_instance==null){lock(sync){if(m_instance==null){try{m_instance=newT();}catch{}}}}re 阅读全文
posted @ 2010-07-05 09:11 wsenmin 阅读(346) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/luyuliang/archive/2010/07/02/1769976.html 发帖的那哥们,我整出了新方法解决乱码问题了,很简单的防止乱码我在JS里面把参数用escape函数加密以后,然后再C#里面用Server.UrlDecode解开,这样就不会有乱码问题了 阅读全文
posted @ 2010-07-02 17:02 wsenmin 阅读(618) 评论(0) 推荐(0) 编辑
摘要: js里面的encodeURI()对应C#System.Web.HttpUtility.UrlEncode("", System.Text.Encoding.GetEncoding("gb2312"))decodeURI()对应C#中System.Web.HttpUtility.UrlDecode("%B1%E0%C2%EB", System.Text.Encoding.GetEncoding("G... 阅读全文
posted @ 2010-06-29 17:24 wsenmin 阅读(5431) 评论(1) 推荐(1) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privateSystem.Web.Caching.CacheItemRemovedCallbackcacheCallBack;//先声明一个删除缓存的委托cacheCallBack=newSyst... 阅读全文
posted @ 2010-06-25 15:35 wsenmin 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1.StringBuilder这个东西在调试的时候,如果过长就只显示一半,我还以为是长度限制,郁闷半天╮(╯▽╰)╭2.xml有5个特殊字符串要过滤的代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.c... 阅读全文
posted @ 2010-06-18 11:24 wsenmin 阅读(591) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>runcode</title><me... 阅读全文
posted @ 2010-06-13 14:30 wsenmin 阅读(472) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/chjun2000/archive/2010/01/10/1643727.html 阅读全文
posted @ 2010-06-11 13:52 wsenmin 阅读(242) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/zhoufeng/archive/2010/06/09/Javascript.html 注意:1。没有返回值的函数, 再JS里面是不能调用的,操作数据库的方法,只能用ajax来调用2. 掉后台函数,传参的办法 public string ss(string ssValue) { return ssValue; }上面是C#,下面是JS <scri... 阅读全文
posted @ 2010-06-11 13:46 wsenmin 阅读(388) 评论(0) 推荐(0) 编辑
摘要: [代码]以上是JS的包含正则 ,search 确定一个字符串是否包含另外一段字符------------------------------------------------------------------C#的正则表达式代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHigh... 阅读全文
posted @ 2010-06-11 13:28 wsenmin 阅读(353) 评论(0) 推荐(0) 编辑