WebParts Controls[3]->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.



C# WebPartManager1.aspx
Run Sample View Source

posted on 2007-05-14 10:15  改变热爱  阅读(147)  评论(0)    收藏  举报

导航