List<String>,String Array 绑定到数据控件上的方法:
页面Htm代码l
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<%# Container.DataItem %><br /> </ItemTemplate>
</asp:Repeater>
CS代码
string[] arr1 = new string[] { "array item 1", "array item 2", "array item 3", "array item 4", "array item 5" };
Repeater1.DataSource = arr1;
Repeater1.DataBind();