摘要: 1.在项目中引入Spring.Aop.dll Spring.core.dll和antlr.runtime.dll2.app.config(web.config)中加入以下代码,请注意注释[代码]3.建立一个独立的Class Library 工程,建立以下示例文件代码Code highlighting produced by Actipro CodeHighlighter (freeware)htt... 阅读全文
posted @ 2010-10-21 14:13 zyip 阅读(254) 评论(0) 推荐(0)
摘要: [代码][代码]TraceViewer可以打开WCF Trace File。 WCF和早期的分布式技术相比,它的Logging及Tracing功能是我们所喜欢的,甚至可以监控这样的功能,在分布式系统中的错误信息是非常难以定位的,WCF有了这个功能,我们可以从容的应对错误信息。在codeproject上有一个可管理WCF Trace File大小的XmlWriterTraceListener。另外c... 阅读全文
posted @ 2010-10-20 13:01 zyip 阅读(372) 评论(0) 推荐(0)
摘要: 1.It actually goes to JSON and then to XML, but here's an adaption of json2xml.js specifically for use with jQuery's serializeArray function:[代码]and then I call it like this:[代码]http://www.docunext.co... 阅读全文
posted @ 2010-09-28 16:24 zyip 阅读(789) 评论(0) 推荐(0)
摘要: http://adblockplus.org/blog/five-wrong-reasons-to-use-eval-in-an-extension Wladimir Palant One of the most overused JavaScript features is the eval() function. I have seen it used in very many extens... 阅读全文
posted @ 2010-08-31 15:33 zyip 阅读(350) 评论(0) 推荐(0)
摘要: Join 表示两个表都必须存在的left join 表示以左边的表为基准,不管你右边的表有没有都显示right join和left join刚好相反full outer join表示只要在两个表中任何一个表中有的都显示inner join 内连接left join 左连接 左边的表为主表,数据完全存在(right join 右连接就是left join的主对象表换过来)full join 相当于 ... 阅读全文
posted @ 2010-08-24 14:45 zyip 阅读(187) 评论(0) 推荐(0)
摘要: 使用Topshelf创建Windows 服务 Winndows Service 是一种可随 Windows 操作系统启动而启动的,在后台运行的,通常不和用户产生交互的程序。它无法通过双击来运行,类似于 Unix 守护进程(daemon processes),当用户注销时它也不会停止。Windows 服务由三部分组成:一个服务可执行文件;一个服务控制程序(SCP);服务控制管理器(SCM),负责在 ... 阅读全文
posted @ 2010-07-21 18:04 zyip 阅读(349) 评论(0) 推荐(0)
摘要: 开源的读取Excel文件组件-ExcelDataReader ExcelDataReader可以读取 Microsoft Excel 文件 ('97-2007),支持Windows .Net Framework 2 +、 Windows Mobile with Compact Framework 、 Linux, OS X, BSD with Mono 2。项目地址:http://exceldat... 阅读全文
posted @ 2010-07-21 18:03 zyip 阅读(619) 评论(0) 推荐(0)
摘要: C#全角和半角转换 在计算机屏幕上,一个汉字要占两个英文字符的位置,人们把一个英文字符所占的位置称为"半角",相对地把一个汉字所占的位置称为"全角"。在汉字输入时,系统提供"半角"和"全角"两种不同的输入状态,但是对于英文字母、符号和数字这些通用字符就不同于汉字,在半角状态它们被作为英文字符处理;而在全角状态,它们又可作为中文字符处理。半角和全角切换方法:单击输入法工具条上的 按钮或按键盘上的Sh... 阅读全文
posted @ 2010-07-21 18:00 zyip 阅读(500) 评论(0) 推荐(0)
摘要: 在SQL Server 中插入一条数据使用Insert语句,但是如果想要批量插入一堆数据的话,循环使用Insert不仅效率低,而且会导致SQL一系统性能问题。下面介绍SQL Server支持的两种批量数据插入方法:Bulk和表值参数(Table-Valued Parameters)。运行下面的脚本,建立测试数据库和表值参数。view plaincopy to clipboardprint?--Cr... 阅读全文
posted @ 2010-07-21 17:55 zyip 阅读(419) 评论(0) 推荐(0)
摘要: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/search.aspx?q=linq+to+video&p=1 阅读全文
posted @ 2010-06-15 13:33 zyip 阅读(133) 评论(0) 推荐(0)