ZoneTemplate Property
Collapse the table of content
Expand the table of content

CatalogZone.ZoneTemplate Property

Gets or sets a template to contain child controls within a CatalogZone control in page persistence format.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public virtual ITemplate ZoneTemplate { get; set; }

Property Value

Type: System.Web.UI.ITemplate
An ITemplate that acts as a container for child controls in the zone.

The ZoneTemplate property references a template of type ITemplate that is used to contain the CatalogPart controls in the zone. The zone template enables page developers to declare the CatalogPart controls they want to use in persistence format, rather than having to create all the controls programmatically.

The set accessor for the ZoneTemplate property calls the InvalidateCatalogParts method, which forces the collection of CatalogPart controls that are declared in the zone template on the page to be refreshed. This ensures that the collection of controls referenced by the zone remains current whenever a user changes the controls actually declared within the template on the page.

Notes to Inheritors:

If you want to create a custom CatalogZone zone, but you plan to create the CatalogPart controls programmatically rather than allowing page developers to declare them, you do not need zone template support, and you can inherit directly from the CatalogZoneBase class.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

© 2016 Microsoft