Hi all. I have an array of objects (Let's call it Object A) and each of
these objects has an array of other objects (Let's call these Object B) in
it. I can successfully repeat through Object A's and for each Object A I
can successfully repeat Object B's that are in it, like so:
Object A-1
Object B-1-A-1
Object B-2-A-1
Object B-3-A-1
Object A-2
Object B-1-A-2
Object B-2-A-2
Object A-3
Object B-1-A-3
Object B-2-A-3
etc ...
I am placing a button beside each Object B so the user can delete that
Object if they chose. My problem is that I cannot identify (in code) which
Object A the user wants to delete from? I am using the following code:
asp:Repeater ID="objectARepeater" Runat="server"
<stuff>
asp:Repeater ID="objectBRepeater" Runat="server"
<stuff>
a href="MyCode.aspx?mode=deleteObjectB&ObjectBId=<%#
DataBinder.Eval(Container.DataItem, "ObjectBId")
%>&ObjectAId='ObjectAId"><img align="absBottom" border="0" alt="Delete
ObjectB Item" src="images/delx.gif"></a
/asp:Repeater
/asp:Repeater
I have ObjectBId in the ObjectB object, but I do not store ObjectAId in the
ObjectB object, this value is in ObjectA. I need this value so I know which
ObjectA to delete the ObjectB from.
How do I reference the ObjectAId from the ObjectA while in the ObjectB
repeater?
--
Thanks,
Th**********@gmail.com
--