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

Last post 08-15-2005, 3:36 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  08-15-2005, 3:04 PM 9583

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

    I would like to be able to use my own Submit button with the Cute Editor on an ASP.NET page, rather than the default Submit button that comes with the Cute Editor. I need to be able to process other fields on the page along with the data from the Cute Editor at the time the page is posted back to the server. Is this possible?
  •  08-15-2005, 3:36 PM 9584 in reply to 9583

    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