How do I find out the zoneID of the zone where my custom webpart is being added? Have tried few things including this one.
AnotherWP.ZoneID = ((WebPart) mgr.WebParts["ControllerID"]).Zone.ID;
But it doesnt seem to work. Thoughts?
Assuming that mg is a SPLimitedWebPartManager:
Will get the ZoneID of a WebPart that is already inserted into the page.
To insert a web part into a specific Web Part Zone: