Re: Problem with editor.text

  •  08-03-2010, 8:43 AM

    Re: Problem with editor.text

    Please try the following example:
     
    1. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    2. <%@ Page language="c#"%>  
    3. <html>  
    4.     <head>  
    5. <script runat="server">  
    6.     string OriginalValue="123456";   
    7.     void Page_Load(object sender, System.EventArgs e)   
    8.      {   
    9.         if (IsPostBack)    
    10.         {      
    11.             if (Editor1.Text == OriginalValue)   
    12.             {   
    13.                 label1.Text = "No change!";   
    14.             }   
    15.             else   
    16.             {   
    17.                 label1.Text = "Changed";   
    18.             }   
    19.         }    
    20.         else    
    21.         {      
    22.             Editor1.Text = OriginalValue;   
    23.         }    
    24.        
    25.     }   
    26. </script>  
    27.   
    28.   
    29.     </head>  
    30.     <body>  
    31.         <form id="Form1" method="post" runat="server">  
    32.             <CE:EDITOR id="Editor1" runat="server"></CE:EDITOR><br/>  
    33.             <asp:label Runat="server" id="label1"></asp:label><br/>  
    34.             SSS<%=OriginalValue%>SSS<br/>  
    35.             SSS<%=Editor1.Text%>SSS   
    36.         </form>  
    37.     </body>  
    38. </html>  

    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