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

  •  08-15-2005, 4:22 PM

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