I have this code:
using (SPLimitedWebPartManager mgr = page.GetLimitedWebPartManager PersonalizationScope.Shared))
{
foreach (System.Web.UI.WebControls.WebParts.WebPart wp in mgr.WebParts)
{
if (wp.Zone != null)){
// ........
}
//.......
}
I have the wp.Zone = null
, why is that, although in debugging I can see the name for the webpart and everything except for the Zone = null
.