Hi tgrambo,
It works fine for me. Please test the example below
- <%@ Page Language="C#" %>
-
- <%@ Import Namespace="System.Data" %>
- <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>Untitled Page</title>
- </head>
-
- <script runat="server">
-
- protected override void OnLoad(EventArgs e)
- {
- if (!IsPostBack)
- {
- ViewState["content"] = "type something and click the button below";
- editor1.Text = ViewState["content"].ToString();
- }
- editor1.ActiveTab = TabType.View;
-
-
- base.OnLoad(e);
- }
- protected void button1_Click(object sender, EventArgs e)
- {
- ViewState["content"] = editor1.Text;
- label1.Text = ViewState["content"].ToString();
- }
- </script>
-
- <body>
- <form id="form1" runat="server">
- <div>
- <CE:Editor ID="editor1" runat="server" CustomCulture="en-us">
- </CE:Editor>
- <asp:Button ID="button1" runat="server" Text="Get text" OnClick="button1_Click" />
- <asp:Label ID="label1" runat="server"></asp:Label>
- </div>
- </form>
- </body>
- </html>
Regards,
Ken