P
parsifal
Hi everyone
I am learning to use the Repeater control to display a list of data.
Each of my list items (or rows, however you look at it) has some child
items that are 1..N in length. So I'd like to be able to - within the
Repeater's ItemTemplate - loop over those child elements and display
some controls for each.
Right now I'm simply trying to do a loop (e.g. <% For Each stuff as
String in Eval("Things") ... Next %>, but that does not work. And I
don't believe that's what Eval is meant for (item retrieval). Anyway,
the error it gives is: "Databinding methods such as Eval(), XPath(),
and Bind() can only be used in the context of a databound control."
How do I go about doing this?
Thanks,
Sean
I am learning to use the Repeater control to display a list of data.
Each of my list items (or rows, however you look at it) has some child
items that are 1..N in length. So I'd like to be able to - within the
Repeater's ItemTemplate - loop over those child elements and display
some controls for each.
Right now I'm simply trying to do a loop (e.g. <% For Each stuff as
String in Eval("Things") ... Next %>, but that does not work. And I
don't believe that's what Eval is meant for (item retrieval). Anyway,
the error it gives is: "Databinding methods such as Eval(), XPath(),
and Bind() can only be used in the context of a databound control."
How do I go about doing this?
Thanks,
Sean