tags:

views:

1

answers:

0

I have the following:

SPLimitedWebPartManager wpManager =
             web.GetLimitedWebPartManager(web.Url + "/Pages/Default.aspx", System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);
        SPLimitedWebPartCollection webParts = wpManager.WebParts;

I made test WebPart page, added Table of Contents WebPart and a PageViewerWebPart, but they were not included in the returned collection. I also added a Content Query WebPart, and that did get included. Why would some WebParts not get included?