|
The WebPartZone control serves as the primary control in the Web Parts control set for hosting ASP.NET server side controls on a Web page.
In addition to web parts that inherit from the WebPart class, a WebPartZone control can host controls that do not derive from the WebPart class, by wrapping them with a GenericWebPart control at run time.
Consequently, virtually any ASP.NET server control or user control can function as a web part when used inside a WebPartZone control.
The following example shows how to use a WebPartZone control in an ASP.NET page, and how
to place web parts inside it.
C# WebPartManager1.aspx
|