Last post Dec 18, 2009 06:23 AM by tugberk_ugurlu_
Dec 17, 2009 02:41 PM|tugberk_ugurlu_|LINK
Hi there ! I have My accessdatasource and my listview on my project. The major aim of this project is to introduce some of cities. I have my infos in my database and I am flitering them in a page named "" and I can view in a page them in the without having
problem. But What I want is to add a unique picture for every single data. I hope I have been clear. I have been searching for a day but nothing came up. I need your help. Thanks !
Dec 17, 2009 03:09 PM|Mikesdotnetting|LINK
You just add a field to the Cities table in your database and store the image file name there.
Dec 18, 2009 06:23 AM|tugberk_ugurlu_|LINK
Yeah Thanks a lot. I figured out the problem with below code;
<asp:ListView ID="ListView1" runat="server" DataKeyNames="pictureId">
id="pictureControlID" runat="server" AlternateText='<% #Eval("pictureName") %>'
ImageUrl='<%# "photos/" + Eval("picturePath") %>' />