Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to create a webpart manager with webpart zone and catalog zone.
I search it on net, but it's not webpart zone coming but i dont know how to move from one another.
i want to move webpart form one place to another place in runatime


here the code is

XML
<body>
    <form id="form1" runat="server">
    <div>
        <asp:WebPartManager ID="wpManager" runat="server">
         </asp:WebPartManager>
            <asp:WebPartZone ID="WebPartZone1" runat="server" BackColor="Lime">
                <FooterStyle BorderStyle="Double" BackColor="Fuchsia" BorderColor="#112DEE">
                </FooterStyle>
            </asp:WebPartZone>
            <asp:WebPartZone ID="WebPartZone2" runat="server" BackColor="#CC3399">
            </asp:WebPartZone>
            <asp:WebPartZone ID="WebPartZone3" runat="server">
            </asp:WebPartZone>
    </div>
    </form>
</body>


and in code behind

C#
protected void Page_Load(object sender, EventArgs e)
   {
       wpManager.DisplayMode = WebPartManager.DesignDisplayMode;
   }
Posted
Updated 16-Mar-11 22:49pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900