DeclarativeCatalogPart.WebPartsTemplate Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a reference to a template that contains the WebPart controls declared in a catalog.

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

[TemplateContainerAttribute(typeof(DeclarativeCatalogPart))] 
public:
property ITemplate^ WebPartsTemplate {
	ITemplate^ get ();
	void set (ITemplate^ value);
}
/** @property */
public ITemplate get_WebPartsTemplate ()

/** @property */
public void set_WebPartsTemplate (ITemplate value)

public function get WebPartsTemplate () : ITemplate

public function set WebPartsTemplate (value : ITemplate)

Property Value

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

No code example is currently available or this language may not be supported.

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

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: