1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<HeaderTemplate>
<center><table border="1" cellpadding="3" style="border-collapse:collapse" width="60%">
<tr>
<th align="center">x</th>
<th align="center">y</th>
<th align="center">z</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td colspan='3'><center><%# DataBinder.Eval(Container.DataItem, "date") %></center></td>
</tr>
<tr>
<td>x1</td>
<td><%# DataBinder.Eval(Container.DataItem, "y1") %></td>
<td><%# DataBinder.Eval(Container.DataItem, "z1") %></td>
</tr>
<tr>
<td> x2</td>
<td><%# DataBinder.Eval(Container.DataItem, "y2")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "z2") %></td>
</tr>
<tr>
<td>x3</td>
<td><%# DataBinder.Eval(Container.DataItem, "y3")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "z3") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table></center>
</FooterTemplate>
</asp:Repeater> |
Partager