DeclarativeCatalogPart::WebPartsTemplate Property
Gets or sets a reference to a template that contains the WebPart controls declared in a catalog.
Assembly: System.Web (in System.Web.dll)
[TemplateContainerAttribute(typeof(DeclarativeCatalogPart))] [BrowsableAttribute(false)] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] public: property ITemplate^ WebPartsTemplate { ITemplate^ get (); void set (ITemplate^ value); }
<asp:DeclarativeCatalogPart> <WebPartsTemplate>ITemplate</WebPartsTemplate> </asp:DeclarativeCatalogPart>
Property Value
Type: System.Web.UI::ITemplateAn ITemplate that contains controls declared in a catalog.
The WebPartsTemplate property references the template that contains controls declared on a Web page as part of a catalog. In the hierarchy of declarative elements within a CatalogZone zone, the WebPartsTemplate property is represented by the <webpartstemplate> element, which is a child element of the <asp:declarativecatalogpart> element, and contains all explicitly declared server controls in a catalog.
The following code example demonstrates the declarative use of the WebPartsTemplate property. For the full code required to run the example, see the Example section of the DeclarativeCatalogPart class overview.
This code shows how to insert the <webpartstemplate> element within an <asp:declarativecatalogpart> element in declarative markup.
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.