Re: Error occured when editor visibility set to false during first load

  •  11-04-2008, 2:12 AM

    Re: Error occured when editor visibility set to false during first load

    Hi ylkok,
     
     
    I can not reproduce this issue, please try following code:

    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
      
        protected void b1_Click(object sender, EventArgs e)
        {
            p1.Visible = false;
            p2.Visible = true;
        }

        protected void b2_Click(object sender, EventArgs e)
        {
            p1.Visible = true;
            p2.Visible = false;
        }
    </script>

    <html>
    <head>
        <title>test</title>
    </head>
    <body>
        <form runat="server" id="f1">
            <asp:Panel ID="p1" runat="server">
                <CE:Editor ID="e1" runat="server">
                </CE:Editor>
                Panel1</asp:Panel>
            <asp:Panel ID="p2" runat="server" Visible="false">
                <CE:Editor ID="e2" runat="server">
                </CE:Editor>
                Panel2</asp:Panel>
            <asp:Button ID="b1" runat="server" Text="Panel2Show" OnClick="b1_Click" />
            <asp:Button ID="b2" runat="server" Text="Panel1Show" OnClick="b2_Click" />
        </form>
    </body>
    </html>

     
     
    Regards,
     
    Ken
View Complete Thread