摘要: TO XML ,优化的重点还是在细节,细节决定成败一点也没错View Code System.Diagnostics.Stopwatchst1=newSystem.Diagnostics.Stopwatch();st1.Start();XDocumentxdom=XDocument.Load(XmlPath);varrestElements=xdom.Descendants("rest").ToList();st1.Stop();HttpContext.Current.Response.Write("1.载入XML时间"+st1.ElapsedMilli 阅读全文
posted @ 2012-04-25 10:38 wsenmin 阅读(7554) 评论(0) 推荐(1) 编辑
摘要: View Code usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;publicstaticclassSingletonProvider<T>whereT:new(){privatestaticTm_instance;privatestaticreadonlyobjectsync=newobject();#region无够构造函数的泛型单列///<summary>///无够构造函数的泛型单列///</summary>publicstaticTInstan 阅读全文
posted @ 2011-09-01 20:58 wsenmin 阅读(244) 评论(0) 推荐(1) 编辑
摘要: 请引用System.Core来解决这个问题 阅读全文
posted @ 2010-12-19 01:31 wsenmin 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 一个学弟问我有没有请稍后的那种提示控件,后来我推荐了UpdateProgress控件,不想下午我自己用了点时间写了个通用的,就几句话……可怜的学弟,又被我忽悠了……上代码有真相!代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighli... 阅读全文
posted @ 2010-09-19 18:04 wsenmin 阅读(320) 评论(0) 推荐(0) 编辑
摘要: SQL SERVER 使用索引调优 Transaction Sql 语句 http://www.cnblogs.com/liuyong/archive/2010/09/17/1827945.html感谢寒江蓑苙 阅读全文
posted @ 2010-09-19 14:02 wsenmin 阅读(316) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/yangfan8639050/archive/2010/09/03/1816650.html感谢放逐自由大侠做的分类 阅读全文
posted @ 2010-09-03 17:44 wsenmin 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 呵呵 ,以后取URL中包含的参数不要跳到后台代码去拿了代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--一、字符串分割分析法。  这里是一个获取URL带QUESTRING参数的JAVASCRIPT客户端解决方案,相当于asp的request.quer... 阅读全文
posted @ 2010-08-31 10:21 wsenmin 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: 呵呵,抓取网页扒链接和图片的时候,总有些路径是写的相对路径,比如../之类的,我写了一个函数解决点问题,但不能全部解决,哪位大侠有兴趣有指点一下么代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#regionA标签相对路径改绝对路径privates... 阅读全文
posted @ 2010-08-27 17:21 wsenmin 阅读(2106) 评论(0) 推荐(0) 编辑
摘要: 网上常用免费WebServices集合http://www.webxml.com.cn/WebServices/ValidateCodeWebService.asmx 阅读全文
posted @ 2010-08-24 13:50 wsenmin 阅读(155) 评论(0) 推荐(0) 编辑
摘要: IE7的web标准之道——1:前言(兼目录) http://www.cnblogs.com/justinyoung/archive/2008/02/18/ie7_wsroad_foreword.html 阅读全文
posted @ 2010-08-23 10:19 wsenmin 阅读(210) 评论(0) 推荐(0) 编辑