Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

asp:repeater

0 views
Skip to first unread message

Craig Pearson

unread,
Jul 5, 2002, 10:53:35 AM7/5/02
to
Hi

I am trying to output a parent child style output using a asp:repeater
control. In the outer asp:repeater I nest another asp:repeater. Does anyone
know if this is possible, because I'm not getting any output to my page.
Also, I can't actually see in HTML view the nested asp:repeater control.
Sample code as follows:

<asp:repeater id=header runat=server>
<ItemTemplate>
<table border=1>
<tr>
<td>outer header <%# DataBinder.Eval(Containerr.DataItem,
"ProjectName")</td>
</tr>
</table>
<asp:repeater id=item runat=server>
<HeaderTemplate>
<table border=1>
<tr>
<td><b>Item<.b></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%# DataBinder.Eval(Container.DataItem,
"Activity") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
<asp:repeater>
</ItemRepeater>
<asp:repeater>

Any advice greater appreciated

Craig

Craig Pearson

unread,
Jul 5, 2002, 11:00:53 PM7/5/02
to
Ok, I got the control to display the HTML, but the nested repeater still
failes to render the asp:repeater id=item control. When I debug, and call
the DataBind() method on asp:repeater id=header it appears to work ok but
when I call the same meothod on asp:repeater id=item I get the following
error:

Object reference not set to an instance of an object.

Craig


"Craig Pearson" <craig....@compaq.com> wrote in message
news:PpiV8.11$Mb3.2...@news.cpqcorp.net...

0 new messages