Re: Line-feed/Carriage return entities inserted when Source edited

  •  10-07-2013, 8:36 AM

    Re: Line-feed/Carriage return entities inserted when Source edited

    Hi Justinian,

     

    Does the  
 generated before save? Or after saved into database?

     

    Can you try the example below? try edit some content in source view and click on the save button to save the content into the textbox, does it gets the same problem?

     

    1. <%@ Page Language="c#" ValidateRequest="false" %>  
    2.   
    3. <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <script runat="server">  
    6.   
    7.     protected void btn_save_Click(object sender, EventArgs e)  
    8.     {  
    9.         tb_content.Text = editor1.Text;  
    10.     }  
    11. </script>  
    12.   
    13. <html xmlns="http://www.w3.org/1999/xhtml">  
    14. <head>  
    15.     <title>example</title>  
    16.   
    17. </head>  
    18.   
    19. <body>  
    20.     <form id="Form1" method="post" runat="server">  
    21.         <RTE:Editor ID="editor1" runat="server" />  
    22.         <asp:Button ID="btn_save" runat="server" Text="save" OnClick="btn_save_Click" /><br />  
    23.         <asp:TextBox ID="tb_content" runat="server" TextMode="MultiLine" Rows="10" Width="600px"></asp:TextBox>  
    24.     </form>  
    25. </body>  
    26. </html>  
     

    Regards,

     

    Ken 

View Complete Thread