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

Forums / Developing with Sitefinity / Events - Custom template

Events - Custom template

2 posts, 0 answered
  1. Adeel
    Adeel avatar
    1 posts
    Registered:
    09 Jun 2009
    25 Jan 2010
    Link to this post
    The event page does not work when I define "Item List Template" Path by editing the control from the advanced --> Appearance section.

    I’ve copy pasted master files from the published Sitefinity folder but it still gives following error message.

    A required control was not found in the template for "". The control must be assignable form type "System.Web.UI.WebControls.Repeater" and must have ID "PageRepeaterHyperLink".
    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 "System.Web.UI.WebControls.Repeater" and must have ID "PageRepeaterHyperLink".

    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 "System.Web.UI.WebControls.Repeater" and must have ID "PageRepeaterHyperLink".]
       Telerik.Cms.Web.UI.GenericContainer.ThrowException(Type requiredType, String controlId) +58
       Telerik.Cms.Web.UI.GenericContainer`1.FindControl(Type requiredType, String id, Boolean required) +76
       Telerik.Cms.Web.UI.GenericContainer`1.FindRequiredControl(String id) +68
       Telerik.Cms.Web.UI.PagerContainer.get_PageRepeaterHyperLink() +26
       Telerik.Cms.Web.UI.Pager.CreateChildControls() +173
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    25 Jan 2010
    Link to this post
    Hello Developer,

    Most probably you are not mapping the correct templates which are - ListPageMaster.ascx for master mode and ListPageDetail.ascx for single mode. The error is thrown because the control shown below is missing from your template

    <asp:Repeater ID="PageRepeaterHyperLink" runat="server">
             <HeaderTemplate>
                 <ol class="sf_pager">
                 <li><asp:HyperLink ID="PreviousPage" runat="server" Text="<%$Resources:PreviousPage %>"></asp:HyperLink></li>
             </HeaderTemplate>
             <ItemTemplate>
                 <li>
                     <asp:HyperLink ID="SingleItem" runat="server" />
                 </li>
             </ItemTemplate>
             <FooterTemplate>
                 <li><asp:HyperLink ID="NextPage" runat="server" Text="<%$Resources:NextPage %>"></asp:HyperLink></li>
                 </ol>
             </FooterTemplate>
         </asp:Repeater>


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered