Class ignores "InstantiateIn" method *urgent, please help*
-
Hello,
maybe somebody can tell me why the InstantiateIn method is not executed in the following code? He definetly ignores the complete method....!? What's wrong or do I miss something?
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, ... } }
-
Maybe the WebPart ist not inside a template...
You should ask on a SharePoint or ASP.NET newsgroup...