RTE not usable inside updatepanel?

Last post 11-21-2013, 3:09 PM by comb. 5 replies.
Sort Posts: Previous Next
  •  11-20-2013, 10:17 PM 78401

    RTE not usable inside updatepanel?

    Hello,

     

    i try to use the RTE inside an updatepanel, but i always get the error:

     

    updatepanel could not be set on property contenttemplate

    The RTE runs fine in Browser, but the updatepanel is not working.

     

    Any help would be very nice!

     

    Greetings Matt 

     

     

  •  11-21-2013, 2:31 AM 78402 in reply to 78401

    Re: RTE not usable inside updatepanel?

    Dear customer,

     

    For html post on aspx page,

    you should add the following code

     

    1.  add  ValidateRequest="false" to <%@ Page %>, like <%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" ValidateRequest="false" AutoEventWireup="true" %>

     

    2. if you use asp.net 4.0,  need to add the following snippets to system.web section of web.config

    <httpRuntime requestValidationMode="2.0" /> 
    

     

    Regards,

    Jeff 

  •  11-21-2013, 5:42 AM 78403 in reply to 78402

    Re: RTE not usable inside updatepanel?

    Hello Jeff,

     

    thank you for  fast response, but your suggestions did not help. I tested the cuteditor before and that was working fine.

     

    Page EnableEventValidation="false" ValidateRequest="false" Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/content.Master" CodeBehind="content_add.aspx.vb" Inherits="zutzu.content_add" 

     

    As soon i delete the editor:

    <RTE:Editor id="cedi" Text="" runat="server" EditorBodyClass="../../css/site.css" Width="100%" Height="500" AutoFocus="True" /> 

    it works again!

     

     Regards, Matt
  •  11-21-2013, 8:01 AM 78405 in reply to 78403

    Re: RTE not usable inside updatepanel?

    hi comb,

     

    Can you try the example page below? Does it get the same error?

     

    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>  
    4. <!DOCTYPE html>  
    5.   
    6. <script runat="server">  
    7.   
    8. </script>  
    9.   
    10. <html xmlns="http://www.w3.org/1999/xhtml">  
    11. <head runat="server">  
    12.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
    13.     <title></title>  
    14. </head>  
    15. <body>  
    16.     <form id="form1" runat="server">  
    17.         <div>  
    18.             <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>  
    19.             <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
    20.                 <ContentTemplate>  
    21.                     <RTE:Editor ID="editor1" runat="server" />  
    22.                 </ContentTemplate>  
    23.             </asp:UpdatePanel>  
    24.         </div>  
    25.     </form>  
    26. </body>  
    27. </html>  
     

    Regards,


    Ken 

  •  11-21-2013, 2:57 PM 78407 in reply to 78405

    Re: RTE not usable inside updatepanel?

     Hi Kenneth,

     

    no that works :-/

     

    So it is something else wrong... I try to solve it myself.

     

    Thanks alot!

     

    Greetings Matt 

  •  11-21-2013, 3:09 PM 78409 in reply to 78407

    Re: RTE not usable inside updatepanel?

    Ok, that was easy :-)

     

    The Problem was the Text = "". After removing it, the UpdatePanel throws no more Errors.

     

    Thanks alot to all that tried to help! 

View as RSS news feed in XML