
668
|
Chapter 36: The System.Web.UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Attribute ➝ ParseChildrenAttribute
Valid On
Class
PartialCachingAttribute
System.Web.UI (system.web.dll)
sealed class
This class specifies the attributes that can be set on user controls for fragment caching.
To enable fragment caching, use the <OutputCache> directive at the beginning of the
appropriate .ascx file. ASP.NET will automatically generate this attribute when the
user control is requested. Alternatively, you can leave out the directive and use this
attribute in the code-behind class for the user control.
Hierarchy
System.Object ➝ System.Attribute ➝ PartialCachingAttribute
Valid On
Class
PartialCachingControl
System.Web.UI (system.web.dll)
disposable
class
This class is utilized by the ASP.NET framework to use fragment caching with user
controls. You can enable fragment caching by using the OutputCache directive at the
beginning of the appropriate .ascx file.
public ParseChildrenAttribute(bool childrenAsProperties, string defaultProperty);
// Public Static Fields
public static readonly ParseChildrenAttribute Default; // =System.Web.UI.ParseChildrenAttribute
// Public Instance Properties
public bool ChildrenAsProperties{set; get; }
public string DefaultProperty{set; get; }
// Public Instance Methods
public ...