Click to Rate and Give Feedback

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (1)
SPWebPartManager Class (Microsoft.SharePoint.WebPartPages)
Manages all the Web Part controls, functionality, and events that occur on a Web page.

Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
<DefaultMemberAttribute("Item")> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level:=AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPWebPartManager
    Inherits WebPartManager
    Implements IPostBackEventHandler
Visual Basic (Usage)
Dim instance As SPWebPartManager
C#
[DefaultMemberAttribute("Item")] 
[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.

System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebParts.WebPartManager
      Microsoft.SharePoint.WebPartPages.SPWebPartManager
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker