title: Asp.Net DataList bind array of *.aspx ImageUrls
body: <p>The code below works perfect for binding actual urls grabbed from the net. My issue is that it does not work for *.aspx urls that generate an image. If I go to the *.aspx page "~/UserPages/Photo/GetThumbnail.aspx?id=7", an image shows up just fine. However it does not work for the datalist. Any ideas why and how I can solve this issue. Thank you! The string array 'imageurls' consists of many *.aspx image urls.  </p>
  
  <pre><code>&lt;asp:DataList ID="dlImages" runat="server" 
      RepeatColumns="5" 
      RepeatDirection="Horizontal" 
      RepeatLayout="Flow"&gt;
  
      &lt;ItemTemplate&gt;
          &lt;img src="&lt;%# (string)Container.DataItem %&gt;" /&gt;
      &lt;/ItemTemplate&gt;
  
  &lt;/asp:DataList&gt;
  </code></pre>
  
  <p>Code behind  </p>
  
  <pre><code>protected void BindImages(string[] imageurls)
  {
      dlImages.DataSource = imageurls; 
      dlImages.DataBind();
  }
  </code></pre>