try to find out in the following way
int Id = int.parse(DropDownList1 .SelectedValue);
cmd = new SqlCommand("select * from Images where id= @Id",con);
cmd.parameters.addwithvalue("@Id",Id);
while (dr.Read())
{
objProduct.ProductImage = dr["Imagename"].ToString();
}