Hi
i want to display an image in a table
this is my code
SqlCommand cmd1 = new SqlCommand("select * from products", conn);
conn.Open();
SqlDataReader dr = cmd1.ExecuteReader();
Response.Write("<table border= '0' >");
Response.Write("<thead>");
Response.Write("<tr ><th>Productid</th><th width='60px'>Name</th><th>Image</th><th>price</th></tr>");
Response.Write("</thead>");
Response.Write("<tbody>");
while (dr.Read())
{
Response.Write("<tr><td>" + dr["productid"].ToString() + "</td> ");
Response.Write("<td>" + dr["name"].ToString() + "</td> ");
Response.Write("<td> <asp:ImageButton ID='ImageButton1' runat='server' ImageUrl='<%# Eval('PictureURL','ProductImages\\{0}') %>' </td>");
Response.Write("<td>" + dr["price"].ToString() + "</td> ");
}
conn.Close();
Response.Write("</tbody>");
Response.Write("</table>");
but image is not showing
rest is showing correctly
Regards
K L BAIJU