动态地从文件夹中撤回特定图像 [英] retreving a particular image from a folder dynamically

查看:71
本文介绍了动态地从文件夹中撤回特定图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我有一个文件夹,其中存储了一些图像.现在我想根据我从数据库中获取的值从文件夹中检索图像.例如,如果从数据库中检索到的值已完成,则应该针对当前和将来类似地针对该值显示complete.jpg.

请提出建议.

我在数据列表中使用图像控件

HI ALL!!

I have a folder in which i have stored some images. now i want to retrieve image from the folder according to the value that i get from the database. for instance if the value retrieved from database is completed then complete.jpg should be shown against that value similarly for current and future.

please suggest how can it be done.

i am using image-control inside a datalist

推荐答案

从图像文件夹中读取所有图像,并在条件匹配时迭代路径并使用路径图像名称检查数据库图像名称那么您只需将该路径设置为图像控件即可.
read all image from from your image folder and iterate path and check database image name with path image name , when condition match then you just set that path to your image control.


这篇关于动态地从文件夹中撤回特定图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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