Hello all,
I am developing a wap site. here I store the image title in database and store the image in my directory. But while read the title and path and then I get only one image. ut I want to show all of my images. my codes are following..........
while{
(reader.Read())
string
imgName = (string)reader["content_title"];
string imgPaths = (string)reader["content_path"];
Response.Write(imgName +
"<br>");
Response.Write(imgPaths +
"<br>");
string
imgPath = "Images/" + imgPaths;
img1.ImageUrl += imgPath;
}
Here i get only the last image. Please help me to sort out this problem.