WebPartZoneBase::GetInitialWebParts Method
Gets an initial collection of WebPart controls contained in a zone, based on a template or some storage medium.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System.Web.UI.WebControls.WebParts::WebPartCollectionA WebPartCollection that contains the initial set of WebPart controls that belong in a zone.
The GetInitialWebParts method gets the initial collection of WebPart controls for a zone only if there is a preexisting template or other form of storage that determines what controls are in the zone. The method does not reflect any personalization changes, which might mean that controls in the initial collection have actually been moved by a user into another zone.
The initial collection of WebPart controls in the zone are not necessarily the same as the collection contained in the WebParts property of the zone, which reflects the actual current collection of controls in the zone when a page is rendered, taking into account any personalization changes that have been made.
Notes to ImplementersThe GetInitialWebParts method is abstract, so it must be implemented by derived classes. The GetInitialWebParts method of the WebPartZone class contains one implementation of the method.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.