tags:

views:

22

answers:

1

I'm using Sharepoint Object Model and after spending some hours with this problem, it looks like SPLimitedWebPartManager doesn't have the "Zones" property (available in SPWebPartManager). I cannot believe the SPLimitedWebPartManager is able to retrieve all the webparts on a specific page (an SPFile), each one with its respective webpartzone assigned, and not able to retrieve all the webparzones of that file!

Any ideas?

Thanks in advance!

Nuno

A: 

Alas, SPWebPartZone is a bit of a mysterious topic in the SharePoint object model. As far as I know, there is no way to identify the zones using the SPLimitedWebPartManager.

Cornelius J. van Dyk
One could retrieve the actual page layout .aspx file and parse it for "<WebPartPages:WebPartZone>" content, but this seems a rather awkward approach. What do you think?
Nuno
Indeed, that's an option, but as you point out, awkward. :-)
Cornelius J. van Dyk