CuteEditor.Text is empty in postback

Last post 10-10-2011, 7:07 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-08-2011, 5:27 PM 70323

    CuteEditor.Text is empty in postback

    I'm having an issue with CuteEditor. When post back, CuteEditor.Text value is always empty. I'm using FireFox 7.01 as front end.
     
    If I use IE 9, CuteEditor is not even rendered properly.  Few menu items such as CSS Class, Paragraph are not rendered and I can't edit the content area.
     
    Please help!
     
    Thanks!
     
    Jeff
    Filed under: , ,
  •  10-10-2011, 7:07 AM 70330 in reply to 70323

    Re: CuteEditor.Text is empty in postback

    Hi jeffqi,
     
    1. The post back question
     
    Please try the examle below, it will show you the editor text each postback button click. Does it works for you?
     
    <%@ Page Language="C#" %>

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <!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 button1_Click(object sender, EventArgs e)
        {
            ClientScript.RegisterClientScriptBlock(this.GetType(), "show", "<script>alert('" + editor1.Text + "')</" + "script>");
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <CE:Editor ID="editor1" runat="server">
            </CE:Editor>
            <asp:Button ID="button1" runat="server" Text="post back" OnClick="button1_Click" />
        </form>
    </body>
    </html>
     
    2. About the IE9 question
     
    Please try demo http://www.cutesoft.net/example/general.aspx, does it get the same issue with your ie9 browser?
     
    It the demo works for you, please download the latest version and try again.
     
    Latest version downloads http://www.cutesoft.net/downloads/folders/21904/download.aspx
     
    Keep me posted.
     
    Regards,
     
    Ken
View as RSS news feed in XML