Click here to Skip to main content
15,917,991 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

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

and in code behind

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

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