摘要: for design pattern , i always has an impression that we would not find the advantages and disadvantages if we don't use them in our projects. i don't ... 阅读全文
posted @ 2011-06-14 17:41 growing pain 阅读(195) 评论(0) 推荐(0) 编辑
摘要: the events of life circle in a datagrid first, there is a important object in datagrid : datagriditem, we can get them use datagrid.items which is inh... 阅读全文
posted @ 2011-06-10 15:09 growing pain 阅读(274) 评论(0) 推荐(0) 编辑
摘要: ASP.NET打开新窗口方法一:Response.Write("");这种方式代码每次是生成在页面最顶端ASP.NET打开新窗口方法二:stringstrScript="";strScript+="";boolb=((Page)System.Web.HttpContext.Current.Handl... 阅读全文
posted @ 2011-06-07 16:47 growing pain 阅读(2039) 评论(1) 推荐(0) 编辑
摘要: application state:application state varibles are global variables for a given ASP.NET application.1.The memory impact of storing something in application state. The memory occupied by variables stored in application state is not released until the value is either removed or replaced2.The concurrency 阅读全文
posted @ 2011-02-21 17:30 growing pain 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 单例模式是设计模式中最基础的,它用于控制一个类只能拥有一个实例,并在类中提供一个访问他的全局访问点。单例模式举例:public class Singleton{  private static Singleton instantce;  private static readonly object _object = new object();  private Singleton(){}  pu... 阅读全文
posted @ 2010-12-02 16:28 growing pain 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 问题一:public class A{  public A(){}  public virtual functionA() {    Console.WriteLine("I am A"); }}public class B:A {  public B(){}  public functionA(){      Console.WriteLine("I am B");}}public static... 阅读全文
posted @ 2010-11-17 17:50 growing pain 阅读(161) 评论(0) 推荐(0) 编辑
摘要: .net exceptions are divided into two diifferent kinds. 1.system exceptions: inherited from System.SystemException, such as ArgumentOutofRangeException... 阅读全文
posted @ 2010-11-08 14:46 growing pain 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 介绍 对于ASP.NET开发者,理解ASP.NET的页面生命周期是非常重要的。主要是为了搞明白在哪里放置特定的方法和在何时设置各种页面属性。但是记忆和理解页面生命周期里提供的事件处理方法(method)非常困难。互联网上有很多关于页面生命周期内部机制的文章,所以本文只准备简单覆盖技术的基础部分,更主... 阅读全文
posted @ 2010-11-06 17:57 growing pain 阅读(3066) 评论(0) 推荐(1) 编辑
摘要: a new instance of the web page class is created each time the page is posted to the server. In traditional web programming , this would typically mean... 阅读全文
posted @ 2010-10-27 13:36 growing pain 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1. why use cache can increase performance by storing memory data that is access frequently and that requires signficant processing time to create. 2. ... 阅读全文
posted @ 2010-10-22 15:28 growing pain 阅读(245) 评论(0) 推荐(0) 编辑