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
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.