Re: error? Dialog box in Safari

  •  07-30-2012, 8:11 AM

    Re: error? Dialog box in Safari

    Hi jackdhp,
     
    You can catch the "PostBackCommand" event of the editor, like
     
    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 = editor1.Text  
    10.     End Sub  
    11. </script>  
    12.   
    13. <html xmlns="http://www.w3.org/1999/xhtml">  
    14. <head runat="server">  
    15.     <title>example</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.             <br />  
    23.             <asp:Label ID="label1" runat="server"></asp:Label>  
    24.         </div>  
    25.     </form>  
    26. </body>  
    27. </html>  
    Regards,
     
    Ken 
View Complete Thread