G
Guest
When using a repeater control I want to get the database value by index
instead of using the column name. How can I do this? My current repeater code
looks like this:
<asp:repeater id="rprtroplinks" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<A href="<%# DataBinder.Eval(Container.DataItem,
"Specimen_Link")%>">Link</A>
<br>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:repeater>
instead of using the column name. How can I do this? My current repeater code
looks like this:
<asp:repeater id="rprtroplinks" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<A href="<%# DataBinder.Eval(Container.DataItem,
"Specimen_Link")%>">Link</A>
<br>
</ItemTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:repeater>