Nested Repeaters - Get value from parent repeater while in child

G

Guest

Is it possible to get a value from the parent repeater from within a child
nested repeater? Here is an example of what I want to do, but can't figure
out how or if it's possible at all:

<asp:Repeater Runat="server">
<ItemTemplate>
...
<asp:Repeater Runat="server" DataSource='<%# GetData(
DataBinder.Eval(Container.DataItem, "ID")) %>'>
<ItemTemplate>
...
<%# DataBinder.Eval(Container.DataItem, "PARENTID") %> 'FROM PARENT
</ItemTemplate>
</asp:Repeater>

In the child repeater, I want to use a value "PARENTID" that comes from the
parent of this repeater. Is this possible?

Thanks much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top