Page view counter

These tutorials demonstrate selected features in ASP.NET version 2.0, but they are compatible with later versions of ASP.NET as well. For the current documentation, see the ASP.NET portal on the MSDN Web site.

 

 

   Welcome   |   ASP.NET   |   Web Services   |   Class Browser   
  |   I want my samples in...      

ASP.NET Quickstart Tutorials

WebPartZone

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.



VB WebPartManager1.aspx
Run Sample View Source