包大人博客

迎奥运、讲文明、树新风 -- 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

Silverlight 的单元测试

Unit Testing with Silverlight One of the important capabilities we shipped with the Beta1 release of Silverlight 2 was a unit test harness that enables you to perform both API-level and UI-level unit testing.  This testing harness is cross browser and cross platform, and can be used... [More]

Be the first to rate this post

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

Tags:
Categories: asp.net
Posted by Admin on Thursday, April 24, 2008 12:18 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

ASP.NET 网站中的共享代码文件夹(Bin and App_Code)

 [理论部分摘自MSDN] ASP.NET MVC Source Refresh Preview     如果您的 Web 应用程序包括要在多个页之间共享的代码,您可以将代码保存在 Web 应用程序根目录下的两个特殊文件夹(Bin 文件夹和 App_Code 文件夹)中的某个文件夹中。 Bin 文件夹     可以在 Bin 文件夹中存储编译的程序集,并且 Web 应用程序任意处的其他代码(如页代码)会自动引用该文件夹。典型的示例是您为自定义类编译好的代码。您可以将编译后的程序集复制到 W... [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 6:13 PM
Permalink | Comments (0) | Post RSSRSS comment feed

使用跟踪查看器查看 ASP.NET 跟踪信息

    如果启用了对应用程序的跟踪,当请求任意页面程序时,该页将收集跟踪信息并执行它所包含的任意跟踪语句。可以在跟踪查看器中查看跟踪输出。使用跟踪查看器,您可以在已从应用程序请求的页中选择特定的请求。           跟踪查看器是 asp.net 内置的处理程序,我们可以在配置文件中找到它的配置信息。(参考HTTP 处理程序介绍(IHttpHandler, IHttpAsyncHandler)) <add path="trace... [More]

Be the first to rate this post

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

Tags:
Categories: asp.net
Posted by Admin on Monday, April 07, 2008 12:16 PM
Permalink | Comments (0) | 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

mailto 使用及乱码问题的解决

     mailto是网页设计制作中的一个非常实用的html标签,我们可以用它来自动打开当前计算机系统中默认的电子邮件客户端软件,例如Outlook Express以及Foxmail等。 最简单的用法: <a href="mailto:sample@baodr.com?subject=’包大人博客’&amp;body=’欢迎访问包大人博客 http://www.baodr.com’">E-mail</a> 结果: ... [More]

Be the first to rate this post

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

Tags:
Categories: asp.net
Posted by Admin on Tuesday, April 01, 2008 3:56 PM
Permalink | Comments (2) | Post RSSRSS comment feed

具有验证实现的客户端回调 (ClientScriptManager 类)

    在客户端回调中,客户端脚本函数会向 ASP.NET 网页发送请求,该网页随后会运行其正常生命周期的简化版本以处理该回调。若要确保回调事件源于预期的用户界面 (UI),可以对回调进行验证。回调验证涉及在网页呈现过程中注册要验证的事件,然后在回调过程中对该事件进行验证。      对回调事件验证可通过ClientScriptManager类的 RegisterForEventValidation 方法和 ValidateEvent 方法。    &nb... [More]

Currently rated 2.0 by 1 people

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

Categories: asp.net | c#
Posted by Admin on Monday, March 31, 2008 4:10 PM
Permalink | Comments (0) | Post RSSRSS comment feed

ICallbackEventHandler 接口实现回调事件

    为任何需要接收回调事件的自定义控件实现 ICallbackEventHandler 接口。     实现 ICallbackEventHandler 接口的控件的示例包括 GridView、DetailsView 和 TreeView 控件。当回调事件以实现了 ICallbackEventHandler 接口的控件为目标时,将把事件变量作为参数传递来调用 RaiseCallbackEvent 方法以处理该事件,并且 GetCallbackResult 方法返回回调的结果。另外还需要获取一个对客户端函数的引用;调... [More]

Currently rated 2.0 by 1 people

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

Tags:
Categories: asp.net | c#
Posted by Admin on Monday, March 31, 2008 3:33 PM
Permalink | Comments (0) | Post RSSRSS comment feed