Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
[no name] 16-Nov-11 0:21am    
What have you tried? What problems are you having?
Nitesh Kejriwal 16-Nov-11 0:31am    
Please explain your question more. what value you get from Database? the image name or any other value based on which you will filter images.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900