文章分类 - ASP.NET
摘要:Ian Griffiths wrote the following in the comments section of this previous post: Can't you make the cached control the child of an uncached control? The uncached control wouldn't contribute anything...
        阅读全文
            
摘要:Overview The other day I found myself in a bind. I needed to find a way to convert Visio files quickly to *.jpg format. So I began to research different ways of importing the Visio library. I wa...
        阅读全文
            
摘要:(承上节) .NET Framework拦截机制的设计中,在客户端和对象之间,存在着多种消息接收器,这些消息接收器组成一个链表,客户端的调用对象的过程以及调用返回实行拦截,你可以定制自己的消息接收器,把它们插入了到链表中,来完成你对一个调用的前处理和后处理。那么调用拦截是如何构架或者说如何实现的呢? 在.NET中有两种调用,一种是跨应用域(App Domain),一种是跨上下文环境(Context...
        阅读全文
            
摘要:Attribute在拦截机制上的应用 从这一节开始我们讨论Attribute的高级应用,为此我准备了一个实际的例子:我们有一个订单处理系统,当一份订单提交的时候,系统检查库存,如果库存存量满足订单的数量,系统记录订单处理记录,然后更新库存,如果库存存量低于订单的数量,系统做相应的记录,同时向库存管理员发送邮件。为了方便演示,我们对例子进行了简化://Inventory.cs using Syste...
        阅读全文
            
摘要:SqlCommandGenerator类的设计 SqlCommandGEnerator类的设计思路就是通过反射得到方法的参数,使用被SqlCommandParameterAttribute标记的参数来装配一个Command实例。 引用的命名空间://SqlCommandGenerator.cs using System; using System.Reflection; using Syst...
        阅读全文
            
摘要:用于参数的Attribute 在编写多层应用程序的时候,你是否为每次要写大量类似的数据访问代码而感到枯燥无味?比如我们需要编写调用存储过程的代码,或者编写T_SQL代码,这些代码往往需要传递各种参数,有的参数个数比较多,一不小心还容易写错。有没有一种一劳永逸的方法?当然,你可以使用MS的Data Access Application Block,也可以使用自己编写的Block。这里向你提供一种另...
        阅读全文
            
摘要:.NET Framework中对Attribute的支持是一个全新的功能,这种支持来自它的Attribute类。在你的程序中适当地使用这个类,或者是灵活巧妙地利用这个类,将使你的程序获得某种在以往编程中很难做到的能力。我们来看一个例子:假如你是一个项目开发小组中的成员,你想要跟踪项目代码检查的信息,通常你可以把代码的检查信息保存在数据库中以便查询;或者把信息写到代码的注释里面,这样可以阅读代码的同...
        阅读全文
            
摘要:Attribute的基本概念 经常有朋友问,Attribute是什么?它有什么用?好像没有这个东东程序也能运行。实际上在.Net中,Attribute是一个非常重要的组成部分,为了帮助大家理解和掌握Attribute,以及它的使用方法,特地收集了几个Attribute使用的例子,提供给大家参考。 在具体的演示之前,我想先大致介绍一下Attribute。我们知道在类的成员中有property成员,二...
        阅读全文
            
摘要:Implementing Master Pages in ASP.NET Download Master Pages Control and Sample Code:http://www.asp.net/ControlGallery/default.aspx?Category=40&tabindex=2 This sample demonstrates how to implement m...
        阅读全文
            
摘要:his article describes how to use .NET's ability to embed XML files, icons and other files in an assembly so your code can access them at run-time. Embedding the files helps you avoid problems commonly...
        阅读全文
            
摘要:MasterPages: Improved VersionPaul Wilson www.WilsonDotNet.com www.ASPAlliance.com/PaulWilson Previous Article Download Demo Next Article OverviewMasterPages is the most flexib...
        阅读全文
            
摘要:MasterPages: IntroductionPaul Wilson www.WilsonDotNet.com www.ASPAlliance.com/PaulWilson Previous Article Download Demo Next Article OverviewMasterPages is the only solution f...
        阅读全文
            
摘要:When it comes to understanding a how a query is resolved there is nothing better than using the ‘Show Execution Plan’ feature of SQL Query analyzer. I am certain you are aware that using OR operators ...
        阅读全文
            
摘要:Leverage JavaScript in your ASP.NET applications to provide client-side functionality such as button roll-overs, control focus and alerts.文章来源:http://msdn.microsoft.com/asp.net/using/building/web/...
        阅读全文
            
摘要:简介 不管使用哪种底层平台,可靠性和性能都是对所有 Web 应用程序的主要要求,尽管从某种意义上讲,这两个要求是相互矛盾的。例如,要构建更可靠、更健壮的应用程序,可能需要将 Web 服务器与具体的应用程序分离,使应用程序在进程外工作。但是,如果在不同于 Web 服务器进程的内存环境中工作,应用程序将变慢。因此,需要采取合理的措施,以确保进程外代码尽可能快地运行。 在构建 Microsof...
        阅读全文
            
                    
                
浙公网安备 33010602011771号