Hello All,
I want to display latest five product images from the database in 5 seperate image control.How this can be implemented ?
For String I have writtern as follows,
cmd = new SqlCommand("select TOP 4 ProductName,ProductImage FROM Products ORDER BY ProductId DESC", con);
dr = cmd.ExecuteReader();
while (dr.Read())
{
product[index] = dr["ProductName"].ToString();
index++;
}
dr.Close();
lblproduct1.Text=product[0].toString();
lblproduct2.Text=product[1].toString();
In Similar way i want to display images also.kindly Guide me