+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Blog Post Comments

Blog Post Comments

4 posts, 0 answered
  1. Kelly
    Kelly avatar
    24 posts
    Registered:
    05 May 2010
    11 Mar 2011
    Link to this post
    We have successfully been getting comments on our blog. And then today, I was notified that if you try to post a comment the following error is received

    A required control was not found in the template for "". The control must be assignable form type "Telerik.Web.UI.RadEditor" and must have ID "commentTxt".

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: Telerik.Cms.Web.UI.TemplateException: A required control was not found in the template for "". The control must be assignable form type "Telerik.Web.UI.RadEditor" and must have ID "commentTxt".

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [TemplateException: A required control was not found in the template for "". The control must be assignable form type "Telerik.Web.UI.RadEditor" and must have ID "commentTxt".]
       Telerik.Cms.Web.UI.GenericContainer.ThrowException(Type requiredType, String controlId) +73
       Telerik.Cms.Web.UI.GenericContainer.GetControl(String id, Boolean required) +208
       Telerik.Cms.Engine.WebControls.CommentsList.get_CommentText() +66
       Telerik.Cms.Engine.WebControls.CommentsList.SubmitButton_Command(Object sender, CommandEventArgs e) +635
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +102
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

    What do I need to do to resolve this issue?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Mar 2011
    Link to this post
    Hello Kelly,

    It looks like you have made changes to the comments template and you have removed the required control - RadEditor with ID="commentTxt". Please check whether you have mapped the details view template of the blog posts control or CommentsList template.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Kelly
    Kelly avatar
    24 posts
    Registered:
    05 May 2010
    11 Mar 2011
    Link to this post
    I checked the control templates for blog comments ("commentlist.ascx) and the section for the comment text is:

    <li>
                    <asp:Label ID="Label1" runat="Server" Text="<%$Resources:Comment %>" AssociatedControlID="commentTxt"></asp:Label>
                    <asp:TextBox ID="commentTxt" runat="server" TextMode="MultiLine" ValidationGroup="commentInfo" Rows="6"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="contentVal" ControlToValidate="commentTxt" ErrorMessage="<%$Resources:CommentEmpty %>" Display="dynamic" ValidationGroup="commentInfo" CssClass="commentsValidator"></asp:RequiredFieldValidator>
    </li>

    Is that what you are talking about?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Mar 2011
    Link to this post
    Hi Kelly,

    You have replaces the RadEditor with TextBox . This is not possible if you use the standard comments control. If you want to use a TextBox you should use a custom control that inherits from BlogCommnetsList where you need to replace the RadEditor with TextBox.


    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Register for webinar
4 posts, 0 answered