本文介绍了图像下方的列表视图...图像下方的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含图像的列表视图...我需要显示图像的名称...在图像下方应显示的图像...使用C#.net Windows应用程序
I have a List View With Images...I need to display the name of the image...below the image the should be display...using C# .net windows application
推荐答案
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"
RepeatColumns="5">
<ItemTemplate>
<asp:Image runat="server" ID="img1" ImageUrl='<%# Eval("Text") %>' />
<br />
<asp:Label Text='<%# Eval("StartYear") %>' runat="server" ID="txt"></asp:Label>
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%
希望对您有帮助,
干杯.
I hope it helps,
Cheers.
这篇关于图像下方的列表视图...图像下方的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!