save command using Full.config

Last post 02-09-2009, 2:49 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-09-2009, 2:06 PM 48525

    save command using Full.config

    I am using .config file to set the toolbar and need help with the save image button (<item type="image" name="Save" postback="True" />).
     
    Is it practicably to use:
     
    ---------------------------
     Protected Sub btnSaveChange_Command(ByVal sender As Object, ByVal e As CommandEventArgs)
      Dim CommandName As String = CType(e, System.Web.UI.WebControls.CommandEventArgs).CommandName.ToString()
       If CommandName = "SaveEditPage" Then......
    --------------------------
     
    to save text from the editor to my database?
     
    I dont have it to work when i save.........
  •  02-09-2009, 2:49 PM 48531 in reply to 48525

    Re: save command using Full.config

    1. There is an article in the advanced topic section showing you how to capture the save button click:
    http://cutesoft.net/example/howto/CatchSave/cs/capture_save_button_click.aspx

    Hope it helps.

    Let me know if you have any questions or suggestions.
     
    2.
     
    This is another example:
     
    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
     <body>
            <form runat="server" ID="Form1">                      
       <CE:Editor id="Editor1" OnTextChanged="Submit" runat="server" ></CE:Editor>
       <asp:Literal ID="Literal1" Runat="server" />
      </form>
     </body>
    </html>
    <script runat="server">
     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