WebPartManagerInternals.SetZoneID Method

Sets a property that enables a WebPart or server control to keep the ID of the containing zone.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public void SetZoneID (
	WebPart webPart,
	string zoneID
)
public void SetZoneID (
	WebPart webPart, 
	String zoneID
)
public function SetZoneID (
	webPart : WebPart, 
	zoneID : String
)
Not applicable.

Parameters

webPart

The WebPart whose zoneID property value is being set.

zoneID

A string that contains the ID of the zone that webPart belongs to.

This method is called by the WebPartManager control when a WebPart control is being added to a zone. Each WebPart control tracks the ID for the zone it belongs to, and this method sets the property that keeps the ID value.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: