Re: CuteEditor.Text is empty in postback

  •  10-10-2011, 7:07 AM

    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 Complete Thread