/Controls/Samples/TRepeater/Sample1.page
<com:TContent ID="body">
<h1>TRepeater Sample 1</h1>
<com:TRepeater ID="Repeater" EnableViewState="false">
<prop:HeaderTemplate>
<table cellpadding="2">
<tr style="color:white;background-color:black">
<th>ID</th>
<th>Name</th>
<th>Quantity</th>
<th>Price</th>
<th>Imported</th>
</tr>
</prop:HeaderTemplate>
<prop:ItemTemplate>
<tr style="background-color:#BFCFFF">
<td><%#$this->Data['id']%></td>
<td><%#$this->Data['name']%></td>
<td><%#$this->Data['quantity']%></td>
<td><%#$this->Data['price']%></td>
<td><%#$this->Data['imported']?'Yes':'No'%></td>
</tr>
</prop:ItemTemplate>
<prop:AlternatingItemTemplate>
<tr style="background-color:#E6ECFF">
<td><%#$this->Data['id']%></td>
<td><%#$this->Data['name']%></td>
<td><%#$this->Data['quantity']%></td>
<td><%#$this->Data['price']%></td>
<td><%#$this->Data['imported']?'Yes':'No'%></td>
</tr>
</prop:AlternatingItemTemplate>
<prop:FooterTemplate>
<tr style="color:white;background-color:black;text-align:center;">
<td colspan="5">Computer Parts Inventory</td>
</tr>
</table>
</prop:FooterTemplate>
</com:TRepeater>
</com:TContent>