title: Serving an image with a generic handler within a list view. Is it possible?
body: <p>Currently in my webpage i load images to the ListView object as follows...</p>
  
  <pre><code> &lt;ContentTemplate&gt;
              &lt;asp:ListView ID="ListView1" runat="server"&gt;
                  &lt;layouttemplate&gt;
                      &lt;asp:PlaceHolder id="itemPlaceholder" runat="server" /&gt;
                  &lt;/layouttemplate&gt;
                  &lt;ItemTemplate&gt;
                          &lt;td&gt;
                              &lt;asp:Image ID="Image1" runat="server"  
                      ImageUrl = '&lt;%# DataBinder.Eval(Container.DataItem, "Image") %&gt;' /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:ListView&gt;
   &lt;/ContentTemplate&gt;
  </code></pre>
  
  <p>Now, i would like to use a combination of a Generic Handler and the ListView object to serve the images into the ListView</p>
  
  <p>...the generic handler call is like </p>
  
  <pre><code>~/Handlers/Image.ashx?img=
  </code></pre>
  
  <p>How could i combine both above to serve images?</p>
  
  <p>I tried something like the following but it is not correct</p>
  
  <pre><code>&lt;asp:Image ID="Image1" runat="server"  
                          ImageUrl = ~/Handlers/Image.ashx?img= &amp; '&lt;%# DataBinder.Eval(Container.DataItem, "Image") %&gt;' /&gt;
  </code></pre>
  
  <p>So what is the correct way?</p>