
TemplateBuilder | 673
UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
StaticPartialCachingControl
System.Web.UI (system.web.dll)
disposable
class
When you include a user control on your page, and specify that it should be cached
(either by using the standard OutputCache directive in the .ascx file, or the PartialCachingAt-
tribute in the the user control’s code-behind file), an instance of the StaticPartialCachingControl
class will be placed in the control hierarchy of the page as a parent to the cached user
control.
Hierarchy
System.Object ➝ Control(System.ComponentModel.IComponent, System.IDisposable,
IParserAccessor, IDataBindingsAccessor)
➝ BasePartialCachingControl ➝
StaticPartialCachingControl
TagPrefixAttribute
System.Web.UI (system.web.dll)
sealed class
Tag prefixes are used to identify control elements in an .aspx file. For example, all pre-
built ASP.NET controls have a tag prefix of asp:,asin<asp:Label />. You can use the
TagPrefixAttribute for your custom controls to define a different tag, which can help you
distinguish your controls easily. The portion of the tag after the tag prefix is the
control class name. Alternatively, you can use the <Register> directive in the .aspx file
(not the code-behind file).
Hierarchy
System.Object ➝ System.Attribute ➝ TagPrefixAttribute
Valid On
Assembly
TemplateBuilder
System.Web.UI ...