Hello,
maybe somebody can tell me why the InstantiateIn method is not executed in the following code? He definetly ignores the complete method....!?
Thanks:
----
CatalogZone dynCatalog = new CatalogZone();
dynCatalog.ZoneTemplate = new CustomCatalogZoneTemplate(this.Page);
dynCatalog.ID = "PageCatalogs";
Controls.Add(dynCatalog);
----
public class CustomCatalogZoneTemplate : WebPart, ITemplate
{
private Page _page;
public CustomCatalogZoneTemplate(Page page)
{
_page = page;
}
void InstantiateIn(Control container)
{
// some code here... doesn't matter, ...
}
}