Re: How do capture the Save Click Even in VB for CuteEditor ASP.NET

  •  07-16-2012, 7:23 AM

    Re: How do capture the Save Click Even in VB for CuteEditor ASP.NET

    Hi vanavah,
     
    Please try the example below
     
    1. <%@ Page Language="VB" %>  
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <script runat="server">  
    7.   
    8.     Protected Sub editor1_PostBackCommand(ByVal sender As ObjectByVal e As System.Web.UI.WebControls.CommandEventArgs)  
    9.         label1.Text = "save clicked!"  
    10.     End Sub  
    11. </script>  
    12.   
    13. <html xmlns="http://www.w3.org/1999/xhtml">  
    14. <head runat="server">  
    15.     <title>Untitled Page</title>  
    16. </head>  
    17. <body>  
    18.     <form id="form1" runat="server">  
    19.         <div>  
    20.             <CE:Editor ID="editor1" runat="server" OnPostBackCommand="editor1_PostBackCommand">  
    21.             </CE:Editor>  
    22.             <asp:Label ID="label1" runat="server"></asp:Label>  
    23.         </div>  
    24.     </form>  
    25. </body>  
    26. </html>  
    You also can refer to online example at http://www.cutesoft.net/example/howto/CatchSave/cs/capture_save_button_click.aspx. You can find the source code of it in the editor download package "how to" folder.
     
    Regards,
     
    Ken 
View Complete Thread