Basically, I'm asking for the best way to do the following: I have a layout like this
<div class="outer">
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
</div>
<div class="outer">
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
</div>
<div class="outer">
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
<div class="inner"><!-- content --></div>
</div>
So, the outer div is to be repeated three times, with each inner div repeated four times. I'm doing this in ASP.net, the information is coming from a database (probably through Linq)...
I am asking is it better to use a nested repeater and spoon feed each repeater four records at a time through a for/foreach loop, or output the outer divs as literals?
EDITED
<asp:Repeater ID="MyOuterRepeater" runat="server">
<ItemTemplate>
<div class="outer">
<asp:Repeater ID="MyInnerRepeater" runat="server">
<ItemTemplate>
<div class="inner">
<!-- content -->
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</ItemTemplate>
</asp:Repeater>
Or just have one, with opening/ending literals at the top and bottom, making them visible only when needed?
EDIT: Does anybody have an example how it would be done^^^