Creating multiple Web zones : WebPartZone « WebPart « ASP.NET Tutorial






<%@ Page Language="VB"%>
    
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Web Parts Example</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:WebPartManager ID="Webpartmanager1" runat="server">
        </asp:WebPartManager>
        <table>
            <tr>
                <td colspan="3">
                    <asp:WebPartZone ID="WebPartZone1" 
                                     runat="server"
                                     LayoutOrientation="Horizontal">
                        <ZoneTemplate>
                            <asp:Label ID="Label1" 
                                       runat="server" Text="Label"
                                       Title="Welcome to my web page!">
                                       Welcome to the page!
                            </asp:Label>
                        </ZoneTemplate>
                    </asp:WebPartZone>
                </td>
            </tr>
            <tr valign="top">
                <td>
                    <asp:WebPartZone ID="WebPartZone2" runat="server">
                        <ZoneTemplate>
                            <asp:Image ID="Image1" runat="server"
                             ImageUrl="~/Images/Kids.jpg" Width="150px"
                             Title="My Kids">
                            </asp:Image>
                        </ZoneTemplate>
                    </asp:WebPartZone>
                </td>
                <td>
                    <asp:WebPartZone ID="WebPartZone3" runat="server">
                        <ZoneTemplate>
                            <asp:Calendar ID="Calendar1" runat="server"
                             Title="Calendar">
                            </asp:Calendar>
                        </ZoneTemplate>
                    </asp:WebPartZone>
                </td>
            </tr>
        </table>        
    </form>
</body>
</html>








24.4.WebPartZone
24.4.1.Creating multiple Web zones
24.4.2.Turning off the zone modification capability
24.4.3.Graying out the Close link in a Web Part
24.4.4.Removing the Close link in a Web Part
24.4.5.Using images for the Web Part verbs