When I was doing something, I had several parent-child tables, for example, news headlines, subtitles, and titles. I used repeater, I once had one, below is one. I have set repeater3 and repeater3 in repeater2 ....
<% Datetime last = new datetime ();
Foreach (nonocast. domain. entry e in nonocast. domain. entrymanager. instance. reversefindall ()){
If (! Nonocast. domain. kalendar. issameday (last, e. date) {%>
<% If (nonocast. domain. kalendar. istoday (e. date) {%>
Today
<%} Else if (nonocast. domain. kalendar. isyesterday (e. date) {%>
Yesterday
<%} Else {%>
<P> <% = e. date. tostring ("d", system. globalization. datetimeformatinfo. invariantinfo) %> </p>
<% }%>
<% }%>
<P>
& Nbsp; <% = e. time. tow.timestring () %>
& Nbsp; <% = e. title %>
</P>
<% Last = e. date; %>
<% }%>
Repeater nested binding
Asp tutorial. net code
<Table border = "0" cellpadding = "0" cellspacing = "0" style = "margin-bottom: 5px" width = "100%">
<Asp: repeater runat = "server" id = "rptypelist" onitemdatabound = "rptypelist_itemdatabound">
<Itemtemplate>
<Tr>
<Td class = "fb">
& Nbsp; <a href = "lists. aspx? Qtid = <% # eval ("qtid") %> "> <% # eval (" qtypename ") %> </a> <span id =" askcount_15"
Class = "date2"> [<% # eval ("typecount") %>] </span>
</Td>
</Tr>
<Tr>
<Td>
<Div id = "asktop2_15" class = "ask_list">
<Asp: repeater runat = "server" id = "rpquestionlist">
<Itemtemplate>
<A href = "question. aspx? Qid = <% # eval ("liftquestionid") %> ">
<% # Eval ("questiontitle") %> </a> <br/>
</Itemtemplate>
</Asp: repeater>
</Div>
</Td>
</Tr>
</Itemtemplate>
</Asp: repeater>
</Table>
1 2