使用数据库中存在的路径在列表视图中显示图像 [英] to display a image in list view using the path present in database

查看:58
本文介绍了使用数据库中存在的路径在列表视图中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用数据库中的图像路径从文件夹检索图像到列表视图.图像路径是某些表中的一列,其中包含解决方案文件夹中存在的图像的路径.

how to retrive image from folder to listview using image path from database. Image path is a column in some table, that contains path of image present in solution folder.

推荐答案

由于您的问题很模糊,我不确定是您想要的,但是您可能想在CP上查看这些文章.

这些文章可以帮助您显示图像.
在子项目上具有图像的ListView [背景图片LISTVIEW C# [扩展的ListView [
Because your question is quite vague, I''m not sure this is what you want, but you may want to check out these articles here on CP.

These articles can help you with displaying the image.
ListView with Image on SubItems[^]
Backkground Image LISTVIEW C#[^]
Extended ListView[^]


<itemtemplate>
<img src="<%# Eval("path") %>" />
</itemtemplate>



还要检查
^ ]



also check here[^]


这篇关于使用数据库中存在的路径在列表视图中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆