Using my own Submit button with Cute Editor and ASP.NET

Last post 08-15-2005, 4:22 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  08-15-2005, 4:20 PM 9588

    Using my own Submit button with Cute Editor and ASP.NET

    Hi,
    I would like to use the Cute Editor with my own submit button on an ASP.NET page, rather than the default Submit button that comes with the Cute Editor. I need to process data from the Cute Editor along with data from other fields when the form is posted back to the server. Is this possible?
     
    Thanks,
    Gilligan Joy
  •  08-15-2005, 4:22 PM 9589 in reply to 9588

    Re: Using my own Submit button with Cute Editor and ASP.NET

    gilliganjoy,
     
    There is no default submit button that comes with the CuteEditor.
     
    You add your own submit button as you want.
     
    This is an demo:
     
    http://cutesoft.net/example/general.aspx

    The source code of the demo is here:

    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    
    <html>
        <head>
            <title>ASP and ASP.NET WYSIWYG Editor - Default Configuration </title>
            <link rel="stylesheet" href="../example.css" type="text/css" />
        </head>
        <body>
            <form runat="server">    
                <h2>Default Configuration</h2>
                <CE:Editor id="Editor1" EditorWysiwygModeCss="../example.css" runat="server" ></CE:Editor><br />
                <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Show HTML"></asp:Button>
                <asp:Literal ID="Literal1" Runat="server" />
            </form>
        </body>
    </html>
    
    
    
    <script runat="server">
        void Page_Load(object sender, System.EventArgs e)
         {
            if (IsPostBack) 
            { 
                Literal1.Text = "<h2>The HTML you typed is...</h2><br>"; 
                Literal1.Text += Server.HtmlEncode(Editor1.Text); 
            } 
            else 
            { 
                Editor1.Text = "Type Here";
            } 
        
        }
        public void Submit(object sender, System.EventArgs e)
        {
            Literal1.Text
    = "<h2>The HTML you typed is...</h2><br>"; Literal1.Text += Server.HtmlEncode(Editor1.Text); } </script>


    Hope it helps.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML