- 博客(58)
- 收藏
- 关注
转载 仿照everything写的一个超级速查 原创
http://files.cnblogs.com/files/jacd/%E8%B6%85%E9%80%9F%E6%9F%A5%E6%96%87%E4%BB%B6.zip速度奇快无比,体积奇小无比,要代码的留言附上参考资料绍: Everything(官网|中文主页|教程)是速度最快的文件搜索软件。其速度之快令人震惊,百G硬盘几十万个文件,可以在几秒钟之内完成索引;...
2015-05-13 15:24:00
191
转载 BIN文件对象数据库,直接存储对象做数据库,小型项目用它准没错
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.IO; 6 using System.Runtime.Serialization.Formatters.Binary; 7 8 na...
2015-05-12 23:29:00
338
转载 如何将一个类型在FOREACH中使用
1 //让类能在FOREACH循环中使用 2 public class students 3 { 4 int i = -1; 5 6 student[] stus ; 7 public students() { 8 stus = new stude...
2013-05-27 19:57:00
201
转载 复习整理2
CLR:公共语言运行库,一堆库类的集合。他可以运行C#,C++,vb.net。他是多语言开发的基础。CTS:一种规范,能在CLR上面运行的语言规范CLS:也是规范,能在CLR运行遵守的最小规范。程序集:包含程序的所有原始文件与一个清单,该清单包括程序集版本号,语言,发布者,导入类。应用程序域:规定了代码执行范围,多个应用程序域通信是困难的,所以它也能隔离错误。应用程序...
2013-05-27 00:24:00
90
转载 复习整理
#region 多态继承 public abstract class animal { public void Eat() { Console.WriteLine("animal Eat"); } public virtual void Call()...
2013-05-26 23:26:00
79
转载 DataToExcel
View Code usingSystem;usingSystem.Diagnostics;usingSystem.Collections;usingSystem.Data;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingExcel;namespaceMaticsoft...
2012-06-13 17:41:00
484
转载 转换人民币大小金额
using System;using System.Collections.Generic;using System.Text;namespace Maticsoft.Common{ /// <summary> /// Rmb 的摘要说明。 /// </summary> public class Rmb { /...
2012-06-13 17:38:00
88
转载 导出文件 下载 Xls 文件
#region 导出文件 private static void ImportPage(HttpContext Context, string app, string entity, string id) { #region 获取数据id AppEntity.A...
2012-06-13 15:16:00
78
转载 MSChartHelpe
using System;using System.Collections.Generic;using System.Drawing;using System.IO;using System.Web.UI.DataVisualization.Charting; namespace SBS.Common{ public class MSChartHelpe { #...
2012-06-13 15:13:00
91
转载 刚搞出一个好东西哟,识货的赶紧下走
View Code usingSystem;usingSystem.Collections.Generic;usingSystem.Drawing;usingSystem.IO;usingSystem.Web.UI.DataVisualization.Charting;publicclassMSChartHelpe{#regionGet{C...
2012-06-01 18:02:00
545
转载 linq group by having 实现
TO XML ,优化的重点还是在细节,细节决定成败一点也没错View Code System.Diagnostics.Stopwatchst1=newSystem.Diagnostics.Stopwatch();st1.Start();XDocumentxdom=XDocument.Load(X...
2012-04-25 10:38:00
485
转载 Linq 简易处理
View Code usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;publicstaticclassSingletonProvider<T>whereT:new(){privatestaticTm...
2011-09-01 20:58:00
80
转载 命名空间“System”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?)...
请引用System.Core来解决这个问题转载于:https://www.cnblogs.com/jacd/archive/2010/12/19/1910337.html
2010-12-19 01:31:00
174
转载 请稍后控件
一个学弟问我有没有请稍后的那种提示控件,后来我推荐了UpdateProgress控件,不想下午我自己用了点时间写了个通用的,就几句话……可怜的学弟,又被我忽悠了……上代码有真相!代码<html><head><scriptsrc="js/jquery-1.4.2.min.js"type="text/javascript"&...
2010-09-19 18:04:00
81
转载 这篇文章证实了索引对于IN,LIKE的优化程度,顺便学会了怎么看看语耗费的时间...
SQL SERVER 使用索引调优 Transaction Sql 语句 http://www.cnblogs.com/liuyong/archive/2010/09/17/1827945.html感谢寒江蓑苙转载于:https://www.cnblogs.com/jacd/archive/2010/09/19/1830987.html...
2010-09-19 14:02:00
81
转载 感谢放逐自由《博客园精华集》分类索引
http://www.cnblogs.com/yangfan8639050/archive/2010/09/03/1816650.html感谢放逐自由大侠做的分类转载于:https://www.cnblogs.com/jacd/archive/2010/09/03/1817265.html
2010-09-03 17:44:00
143
转载 静态html文件js读取url参数
呵呵 ,以后取URL中包含的参数不要跳到后台代码去拿了代码一、字符串分割分析法。 这里是一个获取URL带QUESTRING参数的JAVASCRIPT客户端解决方案,相当于asp的request.querystring,PHP的$_GET函数:<Scriptlanguage="javascript">functionGetRequest()...
2010-08-31 10:21:00
118
转载 抓取网页扒图片相对路径改绝对路径
呵呵,抓取网页扒链接和图片的时候,总有些路径是写的相对路径,比如../之类的,我写了一个函数解决点问题,但不能全部解决,哪位大侠有兴趣有指点一下么代码#regionA标签相对路径改绝对路径privatestaticvoidAHrefFilter(refstringcontent,stringUrl,refstrin...
2010-08-27 17:21:00
369
转载 网上常用免费WebServices集合
网上常用免费WebServices集合http://www.webxml.com.cn/WebServices/ValidateCodeWebService.asmx转载于:https://www.cnblogs.com/jacd/archive/2010/08/24/1807184.html
2010-08-24 13:50:00
78
转载 IE7的web标准之道——1:前言(兼目录) (很牛的CSS书籍)
IE7的web标准之道——1:前言(兼目录) http://www.cnblogs.com/justinyoung/archive/2008/02/18/ie7_wsroad_foreword.html转载于:https://www.cnblogs.com/jacd/archive/2010/08/23/1806210.html...
2010-08-23 10:19:00
89
转载 C# 删除文件夹
http://www.cnblogs.com/sunney/archive/2010/08/16/1800680.htmlC# 删除文件夹 yyyy-MM-dd HH : mm : ss .ffff 年 -月 -日时 :分 :秒 .毫秒datetime格式化处理:转载于:https://www.cnblogs.com/jacd/ar...
2010-08-17 13:44:00
51
转载 单列模式(泛型版)
View Code publicstaticclassSingletonProvider<T>whereT:new(){privatestaticTm_instance;privatestaticreadonlyobjectsync=newobject();///<summa...
2010-07-05 09:11:00
67
转载 JQuery AJAX提交中文出现乱码的解决方案
http://www.cnblogs.com/luyuliang/archive/2010/07/02/1769976.html 发帖的那哥们,我整出了新方法解决乱码问题了,很简单的防止乱码我在JS里面把参数用escape函数加密以后,然后再C#里面用Server.UrlDecode解开,这样就不会有乱码问题了转载于:https://www.cnblogs.co...
2010-07-02 17:02:00
87
转载 encodeURI()decodeURI()
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....
2010-06-29 17:24:00
71
转载 很高兴今天学了点新东西,关于Cache
代码 privateSystem.Web.Caching.CacheItemRemovedCallbackcacheCallBack;//先声明一个删除缓存的委托cacheCallBack=newSystem.Web.Caching.CacheItemRemovedCallback(CacheDelete);//将委托和函数CacheDelete绑定CacheDel...
2010-06-25 15:35:00
76
转载 最近做拼XML,注意2点
1.StringBuilder这个东西在调试的时候,如果过长就只显示一半,我还以为是长度限制,郁闷半天╮(╯▽╰)╭2.xml有5个特殊字符串要过滤的代码 #regionxml字符转义publicstaticstringReplaceESC(stringstr){returnstr.Repl...
2010-06-18 11:24:00
73
转载 * setInterval clearInterval * 用法
代码<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>runcode</title><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><metaname="Author"...
2010-06-13 14:30:00
62
转载 转载 .net面试题大全(有答案)
http://www.cnblogs.com/chjun2000/archive/2010/01/10/1643727.html转载于:https://www.cnblogs.com/jacd/archive/2010/06/11/1756322.html
2010-06-11 13:52:00
98
转载 Javascript 调用后台方法
http://www.cnblogs.com/zhoufeng/archive/2010/06/09/Javascript.html 注意:1。没有返回值的函数, 再JS里面是不能调用的,操作数据库的方法,只能用ajax来调用2. 掉后台函数,传参的办法 public string ss(string ssValue) { r...
2010-06-11 13:46:00
72
转载 [原创]正则匹配
varstrHref=top.document.location.href;varregu="OriginalPic";varre=newRegExp(regu);if(strHref.search(re)!=-1){“have”;}以上是JS的包含正则 ,search 确定一个字符串是否包含另外一段字符-...
2010-06-11 13:28:00
67
转载 jQuery注意事项
http://www.cnblogs.com/micccn/archive/2010/06/07/1753055.html 加一点:document.execCommand("stop");停止执行文档加载. 适用情况: <input onserverclick="btnSave_Click" type="button" runat="server" ...
2010-06-08 09:22:00
127
转载 绕绕选择器-wenmin
代码 <html><headrunat="server"><title>绕绕选择器-wenmin</title><scriptsrc="Scripts/jquery-1.3.2-vsdoc.js"type="text/javascript"></script><s...
2010-06-07 09:17:00
92
转载 TerryLee's 强烈推荐:240多个jQuery插件
http://www.cnblogs.com/Terrylee/archive/2007/12/09/the-ultimate-jquery-plugin-list.html转载于:https://www.cnblogs.com/jacd/archive/2010/05/18/1738413.html
2010-05-18 16:57:00
109
转载 原创超简单超简单的JQ的AJAX用法
包括POST,GET,AJAX前台调用 代码 jQuery.post("NewDoAjax.aspx",{max:'N!',name:'wsenmin'},function(data){alert(data)});jQuery.get("NewDoAjax.aspx",{max:'B!',name:'wsenmin...
2010-05-10 18:15:00
60
转载 C#中正则取URL
要从一些些不规则的地址中截取能用的网址;C#正则代码 stringfirsturl="http://www.herosoft.com,http://www.heropc.com.cn/";//建立正则匹配stringzhengze=@"([\w*]+\.){2,}([\w*]+)";Matchm=Regex.Match(firsturl,z...
2010-04-28 15:53:00
205
转载 (原创)超简单上下翻(jquery)
代码 <html><head><title>超简单上下翻-jquery-博客园-(4-20)</title><scripttype="text/javascript"src="js/jquery.js"></script></head><body><scriptty...
2010-04-20 15:08:00
92
转载 反射帮助类
反射获取,类型,字段,属性,方法,模块,程序集,构造函数,事件等信息代码usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Reflection;usingSystem.Text;publicclassReflectionH...
2010-04-07 14:52:00
100
转载 JS的反射
代码 <html><head><title>JS反射</title><scripttype="text/javascript">/**反射*/functionforwindow(){for(variinwindow...
2010-04-06 17:44:00
62
转载 ext jquery 比较
ext jq:1.EXT体积大,jQuery更专注于简化最基础的开发工作.所以使用起来,也就感觉更像是使用原始的js进行开发一样2.EXT界面美观,jq一般3.EXT代码复用性强4.EXT兼容性还是有点小问题,JQ兼容性良好5.EXT不易调试,6.Ext使页面是只留下body,搜索引擎无法收录这样,不利于SEO排名7.JQ的事件绑定更强Ext简化了很多工...
2010-04-06 15:56:00
101
转载 网上找的一个超简单的JS拖拽
代码<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>r...
2010-04-02 17:57:00
83
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人