Rob*_*ett 13 asp.net arrays testing webforms repeater
这可能是一个愚蠢的问题,但我正在编写一个快速测试页面,并意识到我不知道如何将字符串的数组或ArrayList绑定到例如ASP.NET Repeater.
我试验了一下.
<asp:Repeater ID="rptImages" runat="server">
<HeaderTemplate>
<h3>Items</h3>
</HeaderTemplate>
<ItemTemplate>
<p style="background-color:Black;color:White"><%#Eval(Container.DataItem.ToString())%></p>
</ItemTemplate>
<FooterTemplate>
<h4>End of Items</h4>
</FooterTemplate>
</asp:Repeater>
Run Code Online (Sandbox Code Playgroud)
我完全是傻瓜吗?我只是将它用于具有属性的对象集合.
| 归档时间: |
|
| 查看次数: |
10315 次 |
| 最近记录: |