G
Guest
I created a Repeater (rp1) that is bound to a Datatable, t1. The DataSource
and Datamember properties of rp1 was specified in the properties window as
"ds" and "t1" respectively.
The following code was also included in the HTML view of the form. However,
only the HeaderTemplate rendered in the browser.
<asp:Repeater id="rp1" runat="server">
<HeaderTemplate>
<Table><tr>
<td>Song Name</td>
<td>Artist</td>
<td>Genre</td>
</tr></Table>
</HeaderTemplate>
<ItemTemplate>
<Table><tr>
<td><%# DataBinder.Eval(Container, "DataItem.Song Name") %>
<%# DataBinder.Eval(Container, "DataItem.Artist") %>
<%# DataBinder.Eval(Container, "DataItem.Genre")>
</td>
</tr></Table>
</ItemTemplate>
</asp>
and Datamember properties of rp1 was specified in the properties window as
"ds" and "t1" respectively.
The following code was also included in the HTML view of the form. However,
only the HeaderTemplate rendered in the browser.
<asp:Repeater id="rp1" runat="server">
<HeaderTemplate>
<Table><tr>
<td>Song Name</td>
<td>Artist</td>
<td>Genre</td>
</tr></Table>
</HeaderTemplate>
<ItemTemplate>
<Table><tr>
<td><%# DataBinder.Eval(Container, "DataItem.Song Name") %>
<%# DataBinder.Eval(Container, "DataItem.Artist") %>
<%# DataBinder.Eval(Container, "DataItem.Genre")>
</td>
</tr></Table>
</ItemTemplate>
</asp>