posted @ 2008-09-02 14:57 HeroBeast 阅读(3) | 评论 (0)编辑
posted @ 2008-07-30 17:19 HeroBeast 阅读(18) | 评论 (0)编辑
posted @ 2008-07-29 13:38 HeroBeast 阅读(17) | 评论 (0)编辑
posted @ 2008-07-28 17:47 HeroBeast 阅读(36) | 评论 (0)编辑
posted @ 2008-07-28 11:49 HeroBeast 阅读(67) | 评论 (0)编辑
posted @ 2008-07-25 10:13 HeroBeast 阅读(26) | 评论 (0)编辑
posted @ 2008-07-25 09:37 HeroBeast 阅读(17) | 评论 (0)编辑
posted @ 2008-07-25 09:31 HeroBeast 阅读(46) | 评论 (0)编辑
posted @ 2008-07-16 14:41 HeroBeast 阅读(17) | 评论 (0)编辑
posted @ 2008-07-15 23:34 HeroBeast 阅读(37) | 评论 (0)编辑
posted @ 2008-07-14 23:13 HeroBeast 阅读(55) | 评论 (0)编辑
posted @ 2008-07-14 22:12 HeroBeast 阅读(13) | 评论 (0)编辑
posted @ 2008-07-14 22:09 HeroBeast 阅读(16) | 评论 (0)编辑
posted @ 2008-07-03 18:03 HeroBeast 阅读(33) | 评论 (0)编辑
posted @ 2008-06-26 17:49 HeroBeast 阅读(23) | 评论 (0)编辑
posted @ 2008-05-28 09:21 HeroBeast 阅读(127) | 评论 (0)编辑
posted @ 2008-04-07 09:45 HeroBeast 阅读(42) | 评论 (0)编辑
posted @ 2008-03-13 16:11 HeroBeast 阅读(91) | 评论 (0)编辑
     摘要: 你应该使用UML吗?一个字:是!旧的面向对象符号正在快速地消逝。它们还会残留在UML稳固前出版的书上面,但新的书、文章等等将会全部以UML作为符号。如果你正在使用旧的符号,你就应该在1998年间转换到UML。如果你正要开始使用建模符号,你就该直接学习UML。
--Martin Fowler, 1997
  阅读全文
posted @ 2008-03-13 15:28 HeroBeast 阅读(130) | 评论 (0)编辑
posted @ 2008-03-10 08:41 HeroBeast 阅读(232) | 评论 (1)编辑
     摘要: 一般的在Asp.net里上传文件都是10m左右,要做到大文件上传,必须要改web.config,不过改了web.config有时候也上传不成功,那是每次上传的文件太大,浏览器在这个过程中会超时,采用分块上传的方法就可以避免这种情况。  阅读全文
posted @ 2008-02-28 13:48 HeroBeast 阅读(444) | 评论 (2)编辑
posted @ 2008-02-25 13:48 HeroBeast 阅读(172) | 评论 (0)编辑
     摘要: 序号 名称 值
1 读 1
2 查询 2
3 写 4
4 更新 8
5 删除 16
6 …… ……  阅读全文
posted @ 2008-02-21 15:44 HeroBeast 阅读(72) | 评论 (0)编辑
posted @ 2008-02-15 16:20 HeroBeast 阅读(195) | 评论 (0)编辑
     摘要: httphandler在网上一搜到处都是,可是要是能变成自己的httphandler需要理解了才行。比如要在网页上显示图片,可以用httphandler来实现,使加快相应速度。不去处理那些不必要的操作。  阅读全文
posted @ 2008-02-13 15:46 HeroBeast 阅读(112) | 评论 (1)编辑
posted @ 2008-02-13 14:24 HeroBeast 阅读(37) | 评论 (0)编辑
posted @ 2008-02-13 14:00 HeroBeast 阅读(62) | 评论 (0)编辑
posted @ 2008-02-13 13:57 HeroBeast 阅读(57) | 评论 (0)编辑
posted @ 2008-02-13 13:46 HeroBeast 阅读(45) | 评论 (0)编辑
posted @ 2008-02-13 13:29 HeroBeast 阅读(59) | 评论 (0)编辑
posted @ 2008-02-01 16:21 HeroBeast 阅读(154) | 评论 (0)编辑
posted @ 2008-02-01 16:13 HeroBeast 阅读(118) | 评论 (0)编辑
posted @ 2008-02-01 14:11 HeroBeast 阅读(60) | 评论 (0)编辑
posted @ 2008-02-01 14:05 HeroBeast 阅读(63) | 评论 (1)编辑
posted @ 2008-01-31 10:00 HeroBeast 阅读(82) | 评论 (2)编辑
posted @ 2008-01-31 09:42 HeroBeast 阅读(46) | 评论 (0)编辑
     摘要: $("#orderedlist2 > li").not("[ul]").css("border", "1px solid black");
$("#orderedlist2 li").not("[ul]").css("border", "1px solid black");   阅读全文
posted @ 2008-01-29 14:09 HeroBeast 阅读(24) | 评论 (1)编辑
     摘要: 什么样的控件才是好控件?只有用户使用很简单的,又能实现很好的功能,这样的控件才算是好的控件。那么怎么样才能做到呢?请看下本文。  阅读全文
posted @ 2008-01-25 10:28 HeroBeast 阅读(93) | 评论 (0)编辑
     摘要: ASP.NET 控件时ASP.NET架构的基本组成部分。从本质上讲,ASP.NET是.NET
Framework中的类,可以在ASP.NET页面上映射控件声明。然后,那些类根据他们的
属性,为控件创建HTML。由于类的对象是在运行时间与页面一起被编译的,因此开
发人员可以按照面向对象的方式访问那些对象,例如读取和更改他们的属性、调用他
们的方法和处理服务器端的事件等。在传统ASP程序设计中,服务端的VBScript代码
和HTML标记是混和在一起的,容易引起混淆。而在ASP.NET程序设计中,由于能够
以面向对象的方式访问对象,因此可以创建结构更好、可读性更强的代码。   阅读全文
posted @ 2008-01-25 09:32 HeroBeast 阅读(57) | 评论 (0)编辑
posted @ 2008-01-25 00:06 HeroBeast 阅读(61) | 评论 (0)编辑
     摘要: Singleton模式要求一个类有且仅有一个实例,并且提供了一个全局的访问点。这就提出了一个问题:如何绕过常规的构造器,提供一种机制来保证一个类只有一个实例?客户程序在调用某一个类时,它是不会考虑这个类是否只能有一个实例等问题的,所以,这应该是类设计者的责任,而不是类使用者的责任。

从另一个角度来说,Singleton模式其实也是一种职责型模式。因为我们创建了一个对象,这个对象扮演了独一无二的角色,在这个单独的对象实例中,它集中了它所属类的所有权力,同时它也肩负了行使这种权力的职责!
  阅读全文
posted @ 2008-01-24 09:24 HeroBeast 阅读(20) | 评论 (0)编辑
     摘要: 在软件构建过程中,我们需要为某些对象建立一种“通知依赖关系” ——一个对象(目标对象)的状态发生改变,所有的依赖对象(观察者对象)都将得到通知。如果这样的依赖关系过于紧密,将使软件不能很好地抵御变化。使用面向对象技术,可以将这种依赖关系弱化,并形成一种稳定的依赖关系。从而实现软件体系结构的松耦合  阅读全文
posted @ 2008-01-24 09:21 HeroBeast 阅读(18) | 评论 (0)编辑