This topic has not yet been rated - Rate this topic

SPWebPartManager class

Manages all the Web Part controls, functionality, and events that occur on a webpage.

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebParts.WebPartManager
      Microsoft.SharePoint.WebPartPages.SPWebPartManager

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPWebPartManager : WebPartManager, 
	IPostBackEventHandler

Any SharePoint page that includes Web Parts must have an instance of the SPWebPartManager on the page to manage Web Parts. This object tracks which zones each Web Part is in, connection information related to Web Parts, personalization, and page edit mode.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.