How to Display Binary Images Dynamically In A Table

Jan 21 2013 7:30 AM
Hi....

I Am Retrieving Data From Database And Displaying In Table Dynamically 
For That I Had used The Code in .cs file

 StringBuilder b = new StringBuilder();
        
        b.Append("<table style='background-color:#f3f3f3; border: #336699 3px solid; ");
        b.Append("width:750px; font-size:10pt; font-family:Verdana;' cellspacing='0' cellpadding='3'>");

        b.Append("<tr><td colspan='4' style='background-color:#336699; color:white;'>");
        b.Append("<b>Product Details</b>"); b.Append("</td></tr>");
        b.Append("<tr><td style='width:80px;'><b>Product Name</b></td>");
        b.Append("<td style='width:350px;'><b>Product Description</b></td>");
        b.Append("<td style='width:50px;'><b>Product Price</b></td>");
        b.Append("<td style='width:200px;'><b>Product Image</b></td></tr>");


        b.Append("<tr>");
        b.Append("<td>" + table.Rows[0]["ProductName"].ToString() + "</td>");
        b.Append("<td>" + table.Rows[0]["ProductDescription"].ToString() + "</td>");
        b.Append("<td>" + table.Rows[0]["ProductPrice"].ToString() + "</td>");
      
        b.Append("<td>" + table.Rows[0]["ProductImage"].ToString() + "</td>");  // Here I am unable to Display The Image ..I Had Tried A lot by giving the                                                                                                                                       Imageurl..but it is not possible.

        b.Append("</table>");

pls Help me....

Answers (2)