Today, for the first time I decided to play a little bit
around with Web Parts. Web Parts are ideal if you are making a "Portal
Application" since it allows you to personalize parts of the web page. The
basic controls which make up the Web Parts consists of WebPartManager,
WebPartZone, Catalog Zone and Declarative Catalog. Apart from these controls Web
Parts also contains tons of other controls. The good thing about Web Parts
is that you can add any Web Server Control, User
Control, Custom Control and Web Part Control inside it and it will
work.
By default your Web Part Zones will render the close and minimize links.
If you close the Web Part it will be added to the CatalogZone control from where
you can add it back to the web page. Just remember to set the display mode to
CatalogDisplayMode as I have shown below:
protected
void Page_Load(object sender, EventArgs
e)
{
if (!Page.IsPostBack)
{
portalManager.DisplayMode =
WebPartManager.CatalogDisplayMode;
}
}
powered by IMHO 1.3