包大人博客

迎奥运、讲文明、树新风 -- Welcome To Beijin 2008

About the author

Boris Yang
A troupe of little vagrants of the world, leave your footprints in my words.
E-mail me Send mail

Recent comments

Author

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

.NET Micro Framework Library FusionWare.SPOT

[引用] http://weblogs.asp.net/mschwarz/archive/2008/04/29/net-micro-framework-library-fusionware-spot.aspx            Pinging With Pingers             87 RPC and RPC2 Services You Can Ping ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:
Categories: FrameWork
Posted by Admin on Tuesday, April 29, 2008 10:40 PM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET 页生命周期概述

 [理论部分摘自MSDN] ASP.NET Dynamic Data Preview Available     ASP.NET 页运行时,此页将经历一个生命周期,在生命周期中将执行一系列处理步骤。这些步骤包括初始化、实例化控件、还原和维护状态、运行事件处理程序代码以及进行呈现。了解页的生命周期非常重要,这样就能在合适的生命周期阶段编写代码,以达到预期效果。此外,如果开发自定义控件,则必须熟悉页生命周期,从而正确地初始化控件,使用视图状态数据填充控件属性以及运行所有控件行为逻辑。(控件的生命周期基于页的生命周期,但是页引发的控件事件比单独的... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Admin on Monday, April 21, 2008 9:28 PM
Permalink | Comments (1) | Post RSSRSS comment feed

创建同步 HTTP 处理程序(IHttpHandler)

    本主题介绍了如何实现HTTP 处理程序的代码,该处理程序对 ASP.NET 应用程序中其 URL 以 .sample 结尾的资源执行同步请求处理。在HTTP 处理程序介绍中我们了解了实现同步HTTP处理程序的三个要点:   一个 HTTP 处理程序类的代码。该类必须实现 ProcessRequest 方法和 IsReusable 属性。 Web.config 文件中注册该处理程序并将 .sample 文件扩展名映射到该处理程序所需的元素。 如何在 Internet 信息服务 (IIS) 中将 .sample 文... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Admin on Saturday, April 05, 2008 10:32 PM
Permalink | Comments (0) | Post RSSRSS comment feed

HTTP 处理程序介绍(IHttpHandler, IHttpAsyncHandler)

     在前面的文章中我们介绍了HTTP 模块(IHttpModule),我们知道HTTP 模块是一个在每次针对应用程序发出请求时调用的程序集。HTTP 模块不同于 HTTP 处理程序。对于所有的请求和响应都可调用 HTTP 模块,而 HTTP 处理程序仅在响应特定的请求时才运行。下面我们就介绍一下HTTP处理程序的概念,然后在下篇post中我们在演练一个实例 --创建同步 HTTP 处理程序(IHttpHandler)。      ASP.NET HTTP 处理程序是响应对 ASP.NET We... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Admin on Saturday, April 05, 2008 9:46 PM
Permalink | Comments (0) | Post RSSRSS comment feed

创建自定义 HTTP 模块(IHttpModule)-- 实现数据压缩

在应用程序的 Web.config 文件中注册自定义的 HTTP 模块。当 ASP.NET 创建表示您的应用程序的 HttpApplication 类的实例时,将创建已注册的任何模块的实例。在创建模块时,将调用它的 Init 方法,并且模块会自行初始化。HttpApplication 类的实例时,将创建已注册的任何模块的实例。在创建模块时,将调用它的 Init 方法,并且模块会自行初始化。. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Admin on Wednesday, April 02, 2008 4:31 PM
Permalink | Comments (0) | Post RSSRSS comment feed

HTTP 模块介绍 (IHttpModule)

HTTP 模块是一个在每次针对应用程序发出请求时调用的程序集。HTTP 模块作为 ASP.NET 请求管线的一部分调用,它们能够在整个请求过程中访问寿命周期事件。因此,HTTP 模块使您有机会检查传入的请求并根据该请求采取操作。它们还使您有机会检查出站响应并修改它。 ASP.NET HTTP 模块针对所有的请求运行,这与 ISAPI 筛选器类似。但是它们是用托管代码编写的,而且可以与 ASP.NET 应用程序的生命周期完全集成。. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Admin on Wednesday, April 02, 2008 2:36 PM
Permalink | Comments (0) | Post RSSRSS comment feed

ASP.NET 应用程序生命周期概述

理论部分参考 MSDN     ASP.NET 2.0 使用也一年有余了,最近突然发现有些最初接触的概念早已模糊了,没办法温故而知新吧。 今天回顾一下应用程序生命周期,列出重要的生命周期事件,并描述如何编写适合应用程序生命周期的代码。     在 ASP.NET 中,若要对 ASP.NET 应用程序进行初始化并使它处理请求,必须执行的一些处理步骤。此外,ASP.NET 只是对浏览器发出的请求进行处理的 Web 服务器结构的一部分。了解应用程序生命周期非常重要,这样才能在适当的生命周期阶段编写代码,... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by Admin on Wednesday, April 02, 2008 2:06 PM
Permalink | Comments (0) | Post RSSRSS comment feed

泛型代码中的 default 关键字 [C#]

    在泛型类和泛型方法中我们经常会遇到的一个问题是,在预先未知以下情况时,如何将默认值分配给参数化类型 T,主要有两个问题: T 是引用类型还是值类型。  如果 T 为值类型,则它是数值还是结构。     给定参数化类型 T 的一个变量 t,只有当 T 为引用类型时,语句 t = null 才有效;只有当 T 为数值类型而不是结构时,语句 t = 0 才能正常使用。但问题是我们使用泛型的初衷就是为了类或方法的通用性,类型安全性。我们不能只定义专门适用于引用类型的泛型类和方法,或者只定义适用... [More]

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,
Categories: .net | c# | FrameWork
Posted by Admin on Tuesday, April 01, 2008 10:51 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Lock 关键字实现线程同步 [C#]

    lock 关键字可以用来确保代码块完成运行,而不会被其他线程中断。这是通过在代码块运行期间为给定对象获取互斥锁来实现的。lock 语句以关键字 lock 开头,它有一个作为参数的对象,在该参数的后面还有一个一次只能由一个线程执行的代码块。lock 关键字将语句块标记为临界区,方法是获取给定对象的互斥锁,执行语句,然后释放该锁。 例如:         public void Function()     &n... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: c# | FrameWork
Posted by Admin on Saturday, March 29, 2008 3:38 PM
Permalink | Comments (0) | Post RSSRSS comment feed

处理不同线程间的信号通信

    先来假设一个实际的场景:想象在系统中存在这样的一种海量计算,我们把它分为5个计算单元 – A、B1、B2、B3、C。没一个单元都需要大量的运算,并且 A单元必须先完成,因为B1、B2 和 B3 需要 A的结果。而C又需要B1、B2 和 B3 的结果。     这种场景下,最好优先考虑的应该是多线程计算。比如为 A、B1、B2 和 B3 各创建一个线程,C单元在主线程中运算,但考虑到各个单元之间有着依赖关系,我们可以清楚看到:C的计算必须等待 B1、B2 和 B3 三个单元运算都结束,而 B1、B2 ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: c# | FrameWork
Posted by Admin on Saturday, March 29, 2008 2:42 PM
Permalink | Comments (0) | Post RSSRSS comment feed

C# 泛型简介

 [参考MSDN] http://msdn2.microsoft.com/zh-cn/library/ms379564(vs.80).aspx(中文)                      http://msdn.microsoft.com/vcsharp/default.aspx?pull=/library/en-us/dnvs05/html/csharp_generics.... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,
Categories: c# | FrameWork
Posted by Admin on Monday, March 24, 2008 11:56 AM
Permalink | Comments (0) | Post RSSRSS comment feed