这是aspx页面后对应的image列代码<asp:ImageField DataImageUrlField="UserFace" DataImageUrlFormatString="../images/faces/{0}" HeaderText="头像">
</asp:ImageField>
路径经IIS测试,可以看到图片。
但是debug的项目gridview中的头像都是×。右键×查看属性URL为:http://localhost:3924/WebSite/images/faces/System.Byte[]
问题应该在System.Byte[]了
请问我这样写DataImageUrlFormatString="../images/faces/{0}"对吗?
请各位仁兄帮忙解决,谢谢
</asp:ImageField>
路径经IIS测试,可以看到图片。
但是debug的项目gridview中的头像都是×。右键×查看属性URL为:http://localhost:3924/WebSite/images/faces/System.Byte[]
问题应该在System.Byte[]了
请问我这样写DataImageUrlFormatString="../images/faces/{0}"对吗?
请各位仁兄帮忙解决,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货