<asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:db_conn %>" ID="SqlDataSource1" runat="server" SelectCommand="SELECT * FROM [slides]"></asp:SqlDataSource>
<ul class="slides-container">
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<li><asp:Image ID="Image7" ImageUrl='<%# Eval("PicName") %>'/></li>
</ItemTemplate>
</asp:Repeater>
</ul>
我正在尝试显示与存储在数据库中一样多的图像,但是它不起作用可以帮助我吗?