|
-
Oct 19th, 2003, 05:35 PM
#1
Thread Starter
Junior Member
Nested repeater
I have a nested repeater, but ran in to a small problem, the repeater looks like this:
Code:
<asp:repeater id="Repeater1" runat="server">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "DownName") %> //---This one...
<asp:Repeater id="Repfiles" runat="server" DataSource='<%#GetFile((string)DataBinder.Eval(Container.DataItem, "DownID"))%>'>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "DownName") %> //--- I wan't to be able to use here as well
<%# DataBinder.Eval(Container.DataItem, "SubName") %>
</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
What I'm trying to do is to use <%# DataBinder.Eval(Container.DataItem, "DownName") %> in the second nested repeater as well but it wont work, how can I use the info from the first repeater in the second?
-
Oct 19th, 2003, 11:18 PM
#2
PowerPoster
I am not sure if this works, but maybe try doing this:
Repeater1.DataBinder.Eval(Container.DataItem, "DownName")
Worth a shot.
-
Oct 20th, 2003, 09:26 AM
#3
Thread Starter
Junior Member
Don't work
-
Oct 20th, 2003, 10:15 AM
#4
PowerPoster
You would have to set the nested repeater's datasource equal to to the Container.DataItem of the parent (I'm taking a stab, since I can't run a test right now)
-
Oct 20th, 2003, 10:26 AM
#5
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|