title: retrieve images from sql database and put it on datalist
body: <pre><code>&lt;asp:DataList ID="DataList1" runat="server" RepeatColumns = "2"  RepeatLayout = "Table"  Width = "500px"&gt;
  &lt;ItemTemplate&gt;
      &lt;br /&gt;
      &lt;table cellpadding = "5px" cellspacing = "0" &gt;
      &lt;tr&gt;
          &lt;td&gt;
            &lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%# Eval("Photo") %&gt;' Width = "200px" Height = "200px" /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;
      &lt;br /&gt; 
  &lt;/ItemTemplate&gt; 
  </code></pre>
  
  <p></p>
  
  <p>I have this datalist tag. I want to show pictures in 200x200 size and 3 pictures in a row. Images are to be fetched from sql database. Below is the detail of the table in which I am storing Images..</p>
  
  <pre><code>Table name ===&gt; Photo
  
  Photo_ID as int,
  Photo as varbinary(MAX),
  Content_Type as varchar(200)
  </code></pre>
  
  <p>What should I do to make it possible? How can I bind datalist so that it shows pictures to the user.? </p>
  
  <p>Please help me</p>