0 out of 1 rated this helpful - Rate this topic

SPLimitedWebPartManager.Web Property

Gets the web that this Web Part Page is stored in.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public SPWeb Web { get; }

Property Value

Type: Microsoft.SharePoint.SPWeb
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
simple
SPFile page = web.GetFile("/Pages/default.aspx");
SPLimitedWebPartManager wpManager = page.GetLimitedWebPartManager(PersonalizationScope.Shared);
wpManager.Dispose();