by Pieter Brinkman
30. January 2009 03:47
You can use a string array as datasource and view the string values by using the Container.DataItem property.
Code example
Codebehind:
string[] testData = {"1","two","3","4"};
rptDemo.DataSource = testData;
rptDemo.DataBind();
And in the .aspx:
<asp:Repeater runat="server" ID="rptDemo">
<ItemTemplate>
<%# Container.DataItem %>
</ItemTemplate>
</asp:Repeater>