In sharepoint, how to list all webpartzones of a specific page from object model approach?

╄→гoц情女王★ 提交于 2020-01-06 07:33:10

问题


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


回答1:


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.




回答2:


Even i tried listing webpartzones using SPLimitedWebPartManager but wasn't successful..But It's possible using SPWebPartManager ..Will implement and post the code here..



来源:https://stackoverflow.com/questions/3821067/in-sharepoint-how-to-list-all-webpartzones-of-a-specific-page-from-object-model

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!