How do you get the outer repeater item from an inner repeater. My outer repeater datasource has 3 items. My inner repeater datasource has 7 items. When I am iterating inside the inner repeater how do I get an item from the outer repeater?
My outer repeater datasource is a generic list. One of the items in this list is a day (in number format). My inner repeater is a list of int, 1 through 7 in this list. I need some logic so that when I am iterating the list of days (in the inner)…..if the outer has a value of 2 on the current recorded being iterated (so there is a match) I print something.
I hope that makes sense…
Thanks for any help or tips provided.
What I usually do is just catch the outer item on databound and save it to a variable on the page. Here I have two consecutive repeaters. I save the year from the first repeater and then can reference it when I’m binding the second one.
If what your binding to the first repeater is an class list or queryable, you can access the individual item like this in the first line.