当前位置:编程学习 > C#/ASP.NET >>

listview

各位大侠求帮助啊!在页面使用了listview控件,想显示图片,但这个控件在页面呈现不出额,需要什么特别的设置么?求解? --------------------编程问答-------------------- 应该没有。可能是你绑定错了。 --------------------编程问答-------------------- 检查路径<asp:ListView ID="ListView1" runat="server" DataKeyNames="pictureId">
    <ItemTemplate>
        <asp:Image
        id="pictureControlID" runat="server" AlternateText='<% #Eval("pictureName") %>'
        ImageUrl='<%# "~/photos/" + Eval("picturePath") %>' />
    </ItemTemplate>
</asp:ListView>
或ResolveUrl("~/photos/") 
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,