Nested repeater

Mateusz Żebrowski asked on April 15, 2015 09:04

I'm trying to nest repeater in transformation. I have following code (Path1 is define by "URL Selector" form control):

<cms:CMSRepeater ID="repItems" runat="server" TransformationName="Custom.Document.Preview" ClassNames="Custom.Document" DelayedLoading="true" Path=<%#Eval("Path1")%>/>

In additional I've added script as follows:

<script runat="server">
    protected override void OnInit(EventArgs e) {
        repItems.Path = (string)Eval("Path1") //I need to cust it on string;

and set "Nested controls ID" on repItems. But it still not working. Do you have any clues?

Correct Answer

Brenden Kehren answered on April 15, 2015 13:15

Remove this from your repeater definition Path=<%#Eval("Path1")%>

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.