<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_乱世经典_分类_04.Asp.Net(C#)</title><id>http://feed.cnblogs.com/blog/u/47263/category/174446/rss</id><updated>2012-05-30T11:27:08Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/category/174446.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/47263/category/174446/rss"/><entry><id>http://www.cnblogs.com/chenkai/archive/2011/04/08/2009192.html</id><title type="text">监控USB设备插拔</title><summary type="text">最近做了UKey加密中设计到USB设备. 因UKEy是用来加密和执行PC与项目间通信加密的介质.从作用范围来讲不是传统意义上U盘作为存储介质来使用.其实熟悉网银驱动DR应该了解.在网银系统安全上一个最基本需求就是动态即时监控通信PC驱动以及设备列表通信变化.当然包括我们加密存储介质在PC上USB插拔. 思路一.在WinFrom中通过拦截Windows 消息机制来实现. 类似定义MEssageForm窗体. 假如用鼠标左击一下窗体, 系统会收到一条 WM_LBUTTONDOWN 消息;当鼠标抬起, 系统又会收到 WM_LBUTTONUP 消息.系统收到消息后, 会告诉窗体发生的事情, 然后窗体再</summary><published>2011-04-08T03:23:00Z</published><updated>2011-04-08T03:23:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2011/04/08/2009192.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2011/04/08/2009192.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2011/04/07/2008138.html</id><title type="text">MyBatis For .NET学习笔记[3]:工作原理解析</title><summary type="text">上篇中说道MyBatis的前身是IBatis演化而来.其实IBatis发展到今天已经有9年的历史.当然目前最新版本是IBatis 3.0发布于2009 年7月. 分别演化出不同的Java和.NET版本. 从3.0发布至今为止尚没有做下一个版本的更新.官方也并没提出下一个版本的更新计划.但这并不妨碍我们去进一步去探究MyBatis For .NET内部工作的原理. 其实在写这篇MyBatis原理时 刚开始的思路想从MyBatis插入一条记录过程来探讨MyBatis是如何解析SQL语句并执行一个Entity Object Mapping 到DataTale过程. 下午和一个同事做了一下交流.他提出</summary><published>2011-04-07T09:14:00Z</published><updated>2011-04-07T09:14:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2011/04/07/2008138.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2011/04/07/2008138.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/12/29/1920759.html</id><title type="text">软件加密技巧分析</title><summary type="text">最近两周一直忙于项目中一项数据加密.其中涉及到软件加密部分很具有技巧特点.觉得很有意思,今天拿来分析一下. 其实在这所谈的软件加密我们无需把这个范围定义太过广泛. 简单着重一个点来看. 行业里软件经过多个版本更迭已经趋于一个成熟的产品在流入市场时,  这时我们就面对一个问题:版权和核心数据保护. 目前国内关于软件版权意识依然不是特别浓厚, 因为只有在牵扯到实际利益时有些人才意识到版权和核心数据...</summary><published>2010-12-29T07:57:00Z</published><updated>2010-12-29T07:57:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/12/29/1920759.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/12/29/1920759.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/12/14/1905821.html</id><title type="text">C#控制DataMax指令打印DPL问题总结</title><summary type="text">最近这几天在测试DataMAx-I-4208采用DPL[Developer Programm Language]指令方式进行遇到诸多问题.解决这个问题过程中也是不断打印测试得到验证.今天早上用程序批量打印发先DAtaMax打印出来的条码效果和ZeBar斑马没什么区别.有人也询问很多采用DPL打印细节问题 就此对C#控制DAtaMAx指令DPL打印条码中遇到问题进行总结一下. 首先在讲遇到问题前搞明白我们要打印一个Code128格式的条码需要具体控制什么因素？ 知道我们要在程序中要做什么 这很重要.DataMax发送DPL指令给打印机Code128条码:     打印一条Code12</summary><published>2010-12-14T08:50:00Z</published><updated>2010-12-14T08:50:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/12/14/1905821.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/12/14/1905821.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/12/09/1901465.html</id><title type="text">C#控制DataMax打印机问题总结</title><summary type="text">最近两周时间一直在测试系统涉及条码打印问题,由于原来系统采用通用驱动方式统一Intermac/ZeBar/DataMAx打印.但在处理DataMax打印效果是出现打印条码出现锯齿散射状,导致扫描枪无法识别. 我拿到打印机型号DataMax-I-4208热敏打印型号,坦白说解决问题过程是很折磨人的,一方面源自这方面官方提供资源和打印实例有限,另外一方面设计到设备参数具体调试, 针对C#控制DataMax-I-4208一系列问题解决方法作如下总结: &lt;1&gt;DataMax打印Code128条码出现锯齿状            首先要明白一个概念:DPI [Dots Per I</summary><published>2010-12-09T09:08:00Z</published><updated>2010-12-09T09:08:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/12/09/1901465.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/12/09/1901465.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/11/09/1872471.html</id><title type="text">C#执行PowserShell 脚本</title><summary type="text">Windows PowserShell能够很简洁 快速通过Script脚本方式获得我们想要执行效果. 如何在C#中任意执行PowerShell脚本.？类似目前我要在做一个进程管理工具. 通过PowerShell脚本方式获取当前系统进程调用的详细信息. C#如何执行Shell Script：步骤如下:&lt;1&gt;前提:安装PowerShell SDK.要在C#执行Power Shell 脚本....</summary><published>2010-11-09T03:57:00Z</published><updated>2010-11-09T03:57:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/11/09/1872471.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/11/09/1872471.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/09/19/1831171.html</id><title type="text">算法还重要吗？</title><summary type="text">算法还重要吗？ 我为什么要问这个问题呢？其实这最近一周时间都在看算法在数据挖掘和存储处理性能上运用. 当然这也引起我个人的一些对算法的思考.正好昨天晚上看到张洋同学的算法杂货铺——分类算法之贝叶斯网络(Bayesian networks)一篇文章.更是激发我要去写这篇文章,躺在床上一直在想这个问题怎么能清楚的说出来. 也许你看到这个标题 你也工作了几年 回过头在来看这个问题 也许一时间会感到疑惑...</summary><published>2010-09-19T08:42:00Z</published><updated>2010-09-19T08:42:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/09/19/1831171.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/09/19/1831171.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/09/16/1827902.html</id><title type="text">IE 9 Beta 测试Bug</title><summary type="text">美国当地时间9月15日，微软在旧金山设计中心举办 IE 9 Beta 的美国发布会，具体时间是北京时间 16 日凌晨 2 点，昨天睡得比较早. 早在ZDNet上看到昨天晚上很多关注IE 9发布Tecder们在一块讨论. 我用Windows7系统下载装了一个IE Beta版本安装后发现一个Bug. IE 9 Beta下载地址: IE 9 Beta Download Link[多语言版本...</summary><published>2010-09-16T03:03:00Z</published><updated>2010-09-16T03:03:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/09/16/1827902.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/09/16/1827902.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/09/12/1824207.html</id><title type="text">IE 9 Bate 泄露版</title><summary type="text">今天早上在ZDNet.live News RSS订阅中看到一条关于IE 9 Bate泄露版头条新闻. IE 9 Beta版本将在9月中旬[下周]发布在际. 这条关于IE 9 Beta泄露版新闻一出立即受到 世界各国开发者的关注. 在ZDNet.live News 上这篇文章引用地址与截图: Is this Microsoft's new Internet Explorer 9 interface...</summary><published>2010-09-11T16:02:00Z</published><updated>2010-09-11T16:02:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/09/12/1824207.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/09/12/1824207.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/09/09/1822305.html</id><title type="text">MSSQl分布式查询</title><summary type="text">MSSQlServer所谓的分布式查询(Distributed Query)是能够访问存放在同一部计算机或不同计算机上的SQL Server或不同种类的数据源, 从概念上来说分布式查询与普通查询区别 它需要连接多个MSSQL服务器也就是具有多了数据源.实现在服务器跨域或跨服务器访问. 而这些查询是否被使用完全看使用的需要. 本篇将演示利用SQlExpress链接远程SQlServer来获取数据方式...</summary><published>2010-09-09T06:26:00Z</published><updated>2010-09-09T06:26:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/09/09/1822305.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/09/09/1822305.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/09/02/1815961.html</id><title type="text">快速打包你的应用程序&amp;mdash;&amp;mdash;Inno Setup</title><summary type="text">做一件事我们总期望能够快速的看到成效. 当你的Windows程序在经常变更时 同时又要把这些变更以安装包形式打包给用户. 这就需要一个简单 高效 快速的打包应用程序工具-Inno Setup.       Inno Setup 是一个免费的安装制作软件，小巧、简便、精美是其最大特点，支持pascal脚本，能快速制作出标准Windows2000风格...</summary><published>2010-09-02T05:52:00Z</published><updated>2010-09-02T05:52:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/09/02/1815961.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/09/02/1815961.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/08/31/1813556.html</id><title type="text">由Effiproz DataBase来看.NET开源数据库发展</title><summary type="text">这篇文章本来应该写在上个周末, 可是临时有事给耽误了,上周五在MSDN上看到Effiproz DataBase发布了1.2版本. 在Effiproz以前也用过几个嵌入式开源数据库. 不过Effiproz DataBase是纯C#编写的. 开发者就可以将它移植到具备CLR的大多数环境中，包括.NET Compact、Mono、Windows 7以及Silverlight. 和Windows Phon...</summary><published>2010-08-31T04:32:00Z</published><updated>2010-08-31T04:32:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/08/31/1813556.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/08/31/1813556.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/08/10/1796968.html</id><title type="text">IE 9 Preview尝鲜</title><summary type="text">根据最新信息,微软宣布IE9 beta版将于9月15日发布，并于昨日发布了最后一个IE9 Preview技术预览版。现在已经能够在官网上提供Preview版本的下载. 从IE9公布到现在，IE9的开发人员已经修复了100多个错误。这个IE9浏览器版本的改进让我们非常吃惊，它的JavaScript和图形性能远远领先于之前的版本，JavaScript性能已经跟Chrome、Opera等浏览器基本处在同...</summary><published>2010-08-10T14:48:00Z</published><updated>2010-08-10T14:48:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/08/10/1796968.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/08/10/1796968.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/03/19/1690144.html</id><title type="text">多个版本的统计图工具【Chart Tools】</title><summary type="text">最近项目中要使用数据统计柱状图和饼状图. 虽然Asp.net下也能实现Graphics画图并再次集成生成数据统计功能. 但总体感觉在美观度和简洁上总是达有点差强人意. 很粗糙.我花了一个小时时间做出功能. 但是美化于后台程序关联比较紧,基于程序上美化确一直难以下手.顺便再Codeporject和OpenSource上找到部分关于统计Chart第三方组件,.其中涉及到Javascript版本. 以及...</summary><published>2010-03-19T13:34:00Z</published><updated>2010-03-19T13:34:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/03/19/1690144.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/03/19/1690144.html"/><content type="text">最近项目中要使用数据统计柱状图和饼状图. 虽然Asp.net下也能实现Graphics画图并再次集成生成数据统计功能. 但总体感觉在美观度和简洁上总是达有点差强人意. 很粗糙.我花了一个小时时间做出功能. 但是美化于后台程序关联比较紧,基于程序上美化确一直难以下手.顺便再Codeporject和OpenSource上找到部分关于统计Chart第三方组件,.其中涉及到Javascript版本. 以及...</content></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/02/03/1662873.html</id><title type="text">AjaxControltoolkit(工具包)安装步骤说明</title><summary type="text">本来打算做一个系统搜索中Ajax AutoComplete自动提示的效果,想尝试一下以前用AjaxControlToolkit中控件,在官网上下载一个AjaxControlToolkit2.0版本我尽然忘了如何安装.很是汗了一把. 看来人都是有惰性的,哪怕自己认为以前比较熟练自信的东西 如果时间一长不做回顾还是不行的 回过头不知道如何下手. 官网的安装说装完之后感觉如此简单.记录一下 提个醒.在我...</summary><published>2010-02-03T09:32:00Z</published><updated>2010-02-03T09:32:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/02/03/1662873.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/02/03/1662873.html"/><content type="text">本来打算做一个系统搜索中Ajax AutoComplete自动提示的效果,想尝试一下以前用AjaxControlToolkit中控件,在官网上下载一个AjaxControlToolkit2.0版本我尽然忘了如何安装.很是汗了一把. 看来人都是有惰性的,哪怕自己认为以前比较熟练自信的东西 如果时间一长不做回顾还是不行的 回过头不知道如何下手. 官网的安装说装完之后感觉如此简单.记录一下 提个醒.在我...</content></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2010/02/03/1662542.html</id><title type="text">Asp.net中图片存储数据库以及页面读取显示通用方法详解-附源码下载</title><summary type="text">前端碰到对在一个系统遇到流程控制中需要存储在数据库存储一个签名图片的问题-一直控制不好, 今天特别关于这个问题详细看了一下.其实这个问题网上资源还是相当多的,但问题是过于凌乱资料残缺不全甚至我感觉其中有相当的一部分会对读者产生一些误导.对于Asp.net中存储图片我在08年一月份就做了一个详细解决方案,今天在这个基础主要对一些细节控制上以及页面显示上做了完善,详细步骤如下:首先声明一下开发环境:V...</summary><published>2010-02-03T03:53:00Z</published><updated>2010-02-03T03:53:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2010/02/03/1662542.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2010/02/03/1662542.html"/><content type="text">前端碰到对在一个系统遇到流程控制中需要存储在数据库存储一个签名图片的问题-一直控制不好, 今天特别关于这个问题详细看了一下.其实这个问题网上资源还是相当多的,但问题是过于凌乱资料残缺不全甚至我感觉其中有相当的一部分会对读者产生一些误导.对于Asp.net中存储图片我在08年一月份就做了一个详细解决方案,今天在这个基础主要对一些细节控制上以及页面显示上做了完善,详细步骤如下:首先声明一下开发环境:V...</content></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2009/12/22/1629876.html</id><title type="text">SharedCache-试用演示实例DEMO</title><summary type="text"/><published>2009-12-22T08:21:00Z</published><updated>2009-12-22T08:21:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2009/12/22/1629876.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2009/12/22/1629876.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2009/12/22/1629602.html</id><title type="text">SharedCache-共享缓存概况和初步运用实例(1)</title><summary type="text"/><published>2009-12-22T03:05:00Z</published><updated>2009-12-22T03:05:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2009/12/22/1629602.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2009/12/22/1629602.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2009/11/12/1601648.html</id><title type="text">数据库设计中一个矛盾:数据库外键 你用还是不用(2) 继续....</title><summary type="text">在上篇文章数据库设计中一个矛盾:数据库外键,用还是不用？你怎么看.? 中关于数据库设计外键使用与否的争论一直持续不休. 我从其中评论中也获得一定的启发. 早上雪太大 上班路上耽误不少时间，利用这段时间把这个设想做了出来. 当然有可能极为不成熟, 权当对一次猜想的验证.欢迎各位拍砖.上篇的反方观点主要专注提取数据性能上问题比较突出:" 在海量的数据库中想都不要去想外键，试想，一个程序每天要inser...</summary><published>2009-11-12T03:47:00Z</published><updated>2009-11-12T03:47:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2009/11/12/1601648.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2009/11/12/1601648.html"/><content type="text">在上篇文章数据库设计中一个矛盾:数据库外键,用还是不用？你怎么看.? 中关于数据库设计外键使用与否的争论一直持续不休. 我从其中评论中也获得一定的启发. 早上雪太大 上班路上耽误不少时间，利用这段时间把这个设想做了出来. 当然有可能极为不成熟, 权当对一次猜想的验证.欢迎各位拍砖.上篇的反方观点主要专注提取数据性能上问题比较突出:" 在海量的数据库中想都不要去想外键，试想，一个程序每天要inser...</content></entry><entry><id>http://www.cnblogs.com/chenkai/archive/2009/11/11/1601193.html</id><title type="text">数据库设计中一个矛盾:数据库外键,用还是不用？你怎么看.?</title><summary type="text">最近在做一个派单系统数据库设计，在设计中有些疑惑的地方中午在网上发起一个话题讨论. 我把这个讨论流程.发过来 大家可以可以看看.也可以发表一下自己的意见.对于主/外键/索引来说，在一些开发团队中被认为是处理数据库关系的利器，也被某些开发团队认为是处理某些具体业务的魔鬼，您的观点呢？在实际应用中您会采取哪种方式？大家共同观点：主键和索引是不可少的，不仅可以优化数据检索速度，开发人员还省不其它的工作,...</summary><published>2009-11-11T09:40:00Z</published><updated>2009-11-11T09:40:00Z</updated><author><name>chenkai</name><uri>http://www.cnblogs.com/chenkai/</uri></author><link rel="alternate" href="http://www.cnblogs.com/chenkai/archive/2009/11/11/1601193.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/chenkai/archive/2009/11/11/1601193.html"/><content type="text">最近在做一个派单系统数据库设计，在设计中有些疑惑的地方中午在网上发起一个话题讨论. 我把这个讨论流程.发过来 大家可以可以看看.也可以发表一下自己的意见.对于主/外键/索引来说，在一些开发团队中被认为是处理数据库关系的利器，也被某些开发团队认为是处理某些具体业务的魔鬼，您的观点呢？在实际应用中您会采取哪种方式？大家共同观点：主键和索引是不可少的，不仅可以优化数据检索速度，开发人员还省不其它的工作,...</content></entry></feed>
