摘要: MbUnit is an advanced, extensible unit testing framework originally developed byJonathon ‘Peli’ de Halleux and Jamie Cansdale. Peli joined Microsoftin early 2005 and made it an open source... 阅读全文
posted @ 2008-04-28 17:33 Felix Liang 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 一、题引 在《孟子·梁惠王上》有如此一句话:"君子之于禽兽也,见其生,不忍见其死;闻其声,不忍食其肉。是以君子远庖厨也。"翻译过来意思是:"君子对于飞禽走兽,见到它们活着,便不忍心见到它们死去;听到它们哀叫,便不忍心吃它们的肉。所以,君子总是远离厨房(远离杀生)。"孟子的意思是说:道德高尚的人(君子)不忍心杀生,而现代的某些男人为了偷懒不下厨做饭,则借口说"古代圣贤孟子就教导我们君子总是... 阅读全文
posted @ 2008-04-09 17:29 Felix Liang 阅读(823) 评论(0) 推荐(0) 编辑
摘要: 有两个表,分别是 A,B AID ScriptID TaskID YearID 1 5 3 1 2 5 4 1 3 5 5 1 4 6 3 1 5 6 4 1 6 7 3 2 7 7 5 2 8 8 2 2 9 ... 阅读全文
posted @ 2007-12-11 08:51 Felix Liang 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 在 Page 里面的 request 有很多个有关路径的属性 Path:获取当前请求的虚拟路径,不包括查询字符串。 RawUrl: 获取当前请求的原始 URL,包含查询字符串。 PhysicalApplicationPath:获取当前正在执行的服务器应用程序的根目录的物理文件系统路径。 PhysicalPath: 获取与请求的 URL 相对应的物理文件系统路径。 Url: 获取有关当前请求的完整... 阅读全文
posted @ 2007-11-05 13:17 Felix Liang 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 最近公司从 VS2003+SQL2000 转到 VS2005+SQL2005 开发。 安装 SQL Server 2005 出现各种现象,有些是自己的经历,有些是同事的经历。 第一次 安装了 .Net Framework 2.0 , 安装了 IIS,然后再安装 SQL Server 2005,选择完全安装,有 AdvanceWorks 等2005 的数据库,没有了 Northwind 。 第... 阅读全文
posted @ 2007-10-24 17:27 Felix Liang 阅读(4432) 评论(10) 推荐(0) 编辑
摘要: 有时从数据库中检索出来的数据,需要进行格式化,例如性别在数据库中存储 1 表示男性, 0 表示女性,在显示时要将 1 替换成男, 0 替换成女,这里方法是多样的,可以在服务器端进行,也可以在客户端进行。 在服务器端利用 sql 查询语句,下面有两种方法。 方法一:利用 case declare @tb table(name char(5),sex int) insert @tb select ... 阅读全文
posted @ 2007-10-10 09:14 Felix Liang 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 数据库表有begintime endtime两个时间类型字段,取现在任一时间,查询数据库记录问题?? 数据库表T_time mark begintime endtime 0 8:00:00 16:00:00 1 16:00:00 0:00:00 2 0:00:00 8:00:00 比如我现在已知电脑时间为 9:00:00如何查出第一条记录?比如已... 阅读全文
posted @ 2007-10-08 16:03 Felix Liang 阅读(210) 评论(0) 推荐(0) 编辑
摘要: ComponentArt just released Charting for .NET and the charts looks pretty sweet thanks to what appears to be their original 3D rendering engine. They have both a WinChart for Windows Forms and a W... 阅读全文
posted @ 2007-09-28 09:29 Felix Liang 阅读(342) 评论(0) 推荐(0) 编辑
摘要: [转载]常用CASE工具介绍 转载自:http://www.cnblogs.com/powerlc/archive/2006/01/12/315959.html ... 阅读全文
posted @ 2007-09-07 16:49 Felix Liang 阅读(632) 评论(0) 推荐(0) 编辑
摘要: //事件源对象 event.srcElement.tagName event.srcElement.type //捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); //事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey //事件返回值 event.returnValue //鼠标位置 event.x event.y //窗体活动元素 document.activeElement //绑定事件 document.captureEvents(Event.KEYDOWN); //访问窗体元素 document.all("txt").focus(); document.all("txt").select(); //窗体 阅读全文
posted @ 2007-09-05 11:13 Felix Liang 阅读(288) 评论(0) 推荐(0) 编辑