System.Web.UI.PartialCachingControl Class

Created when a user control (.ascx file) is specified for output caching, using either the @ OutputCache page directive or the System.Web.UI.PartialCachingAttribute attribute, and the user control is inserted into a page's control hierarchy by dynamically loading the user control with the TemplateControl.LoadControl(string) method.

See Also: PartialCachingControl Members

Syntax

public class PartialCachingControl : BasePartialCachingControl

Remarks

Page and control developers cannot use the System.Web.UI.PartialCachingControl class directly. ASP.NET creates an instance of the System.Web.UI.PartialCachingControl class to wrap a user control (.ascx file) when a dynamically loaded user control enables output caching. You can enable output caching for a user control using either the @ OutputCache page directive or the System.Web.UI.PartialCachingAttribute attribute.

You add a user control to a page programmatically by calling the TemplateControl.LoadControl(string) method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0