ralphtrent
Programmer
Hi
I have an aspx file with a CodeBehind file. I will need to use the repeater. When I only had one row to show, I just used the label.text = DataTable.Row[0]["ColumnName"], now that I am using a repeater I can note do that. I have the repeater set up like this:
<asp:Repeater ...>
<itemtemplate>
<asp:label.../>
<asp:label.../>
<asp:label.../>
</itemtemplate>
</asp:repeater>
How can I use the CodeBehind file and the repeater. If I wanted to populate the labels' text property in the aspx file i would use text = <%Container.DataItem("ColumnName")%> but obvioulsy, I can not do that in a CodeBehind.
Let me know if you need more info.
Thanks.
I have an aspx file with a CodeBehind file. I will need to use the repeater. When I only had one row to show, I just used the label.text = DataTable.Row[0]["ColumnName"], now that I am using a repeater I can note do that. I have the repeater set up like this:
<asp:Repeater ...>
<itemtemplate>
<asp:label.../>
<asp:label.../>
<asp:label.../>
</itemtemplate>
</asp:repeater>
How can I use the CodeBehind file and the repeater. If I wanted to populate the labels' text property in the aspx file i would use text = <%Container.DataItem("ColumnName")%> but obvioulsy, I can not do that in a CodeBehind.
Let me know if you need more info.
Thanks.