T
Tommy
I have been working on getting nested repeaters to work for several days.
When I add a repeater inside my item template i cannot see it in my code and
can't set the datasource for it, etc, thus it's useless.
Anytime i try to reference rptChild I get an error saying that it's not an
object. If I set a break point I see that it's <nothing>.
Here is a sample of code that shows the problem.
I would REALLY appreciate any help on getting this to work. They must be
contained inside cells of another table to make the data look like the
customer wants.
Thanks VERY much.
Tommy
<form id="Form1" method="post" runat="server">
<asp:Repeater id="rptParent" runat="server">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td></td>
<tr>
<td>
label1
</td>
<td>
<asp:Repeater id="rptChild" runat="server"> <--- this
repeater is not visible at all
<ItemTemplate>
print something here
</ItemTemplate>
</asp:Repeater>
</td>
</tr>
</td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</form>
When I add a repeater inside my item template i cannot see it in my code and
can't set the datasource for it, etc, thus it's useless.
Anytime i try to reference rptChild I get an error saying that it's not an
object. If I set a break point I see that it's <nothing>.
Here is a sample of code that shows the problem.
I would REALLY appreciate any help on getting this to work. They must be
contained inside cells of another table to make the data look like the
customer wants.
Thanks VERY much.
Tommy
<form id="Form1" method="post" runat="server">
<asp:Repeater id="rptParent" runat="server">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td></td>
<tr>
<td>
label1
</td>
<td>
<asp:Repeater id="rptChild" runat="server"> <--- this
repeater is not visible at all
<ItemTemplate>
print something here
</ItemTemplate>
</asp:Repeater>
</td>
</tr>
</td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</form>