datalist帮助显示图片 [英] datalist help in displaying picture
本文介绍了datalist帮助显示图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请在ma app上急需帮助,我使用datalist来显示数据(包括图像),但除图像外,所有其他数据都在显示。代码如下:
pls i need urgent help on ma app, i''m using datalist to display data(including image), but all other data are displaying except the image. The code below:
<asp:DataList ID="DataList1" runat="server" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
CellPadding="10" DataKeyField="MarketId" DataKeyNames="MarketId"
ForeColor="Black" GridLines="Horizontal" OnItemCommand="DataList1_ItemCommand"
ShowFooter="False" ShowHeader="False" Style="background-color: #CCFFFF" Width="100%">
<FooterStyle BackColor="#CCCC99" ForeColor="Black" />
<HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
<div class="imagedownpartleft99">
<asp:LinkButton ID="MarketIdLabel" runat="server" Text='<%# Eval("MarketId") %>' Visible="False" />
<table class="auto-style3">
<tr>
<td class="auto-style5">
<asp:LinkButton ID="UsernameLabel" runat="server" Text='<%# Eval("Username") %>' />
: </td>
<td>
<asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' />
</td>
</tr>
<tr>
<td class="auto-style5">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("PicPath") %>' AlternateText="Image" BorderStyle="None" Height="74px" Width="100px" />
</td>
<td>
<asp:LinkButton ID="SalesTitleLabel" runat="server" Text='<%# Eval("SalesTitle") %>' />
</td>
</tr>
<tr>
<td class="auto-style5" colspan="2">
<asp:LinkButton ID="SalesDiscriptionLabel" runat="server" Text='<%# Eval("SalesDiscription") %>' />
</td>
</tr>
</table>
<hr style="height: 0px" />
</div>
</ItemTemplate>
<SelectedItemStyle BackColor="#CC3333" Font-Bold="True" Font-Names="Comic Sans MS" Font-Size="Small" ForeColor="White" HorizontalAlign="Left" VerticalAlign="Top" />
<SeparatorStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" />
</asp:DataList>
请帮助.. 。
pls help...
推荐答案
我的语言是c#。请帮忙解决问题。
My language is c#. Pls kindly help get solution.
这篇关于datalist帮助显示图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文