How to pass DataTable values in a loop in aspx?
<p>I have a DataTable called dt5 which has 4 rows. I am trying to pass the src of image in aspx from dt5, but its not working. Here is my code...</p>

<pre><code>&lt;%
    for (int i = 0; i &lt; dt5.Rows.Count; i++)
         {
           string   a = dt5.Rows[0]["imageurl"].ToString();
           string b = dt5.Rows[1]["imageurl"].ToString();
           string c = dt5.Rows[2]["imageurl"].ToString();
      %&gt; 
       &lt;div id="Div1"  class="image_stack" style="margin-left:600px" runat="server" &gt;
        &lt;img id="Img1"  class="stackphotos photo1" src="&lt;%a%&gt;"   /&gt;
        &lt;img id="Img2"  class="stackphotos photo2" src="&lt;%b%&gt;"  /&gt;
          &lt;img id="Img3"   class="stackphotos photo3" src="&lt;%c%&gt;" /&gt;
     &lt;/div&gt;
         &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
      &lt;% } %&gt;
</code></pre>
