title: Trying to embed a DataItem within an asp:Image control's ImageUrl property
body: <p>I have the following Image control within a repeater. I'm trying to get the username to render in between ~/profilepics/ and .jpg but I get the following rendered output</p>
  
  <p>/profilepics/%3C%25#DataBinder.Eval(Container.DataItem,%20%22usernameFrom%22)%20%25%3E.jpg</p>
  
  <p>Here is the markup</p>
  
  <pre><code>&lt;asp:Image ID="Image1" runat="server" ImageUrl='~/profilepics/&lt;%#DataBinder.Eval(Container.DataItem, "username") %&gt;.jpg' /&gt;
  </code></pre>
  
  <p>I have also tried the same but with double quotes and get the same result.</p>
  
  <pre><code>&lt;asp:Image ID="Image1" runat="server" ImageUrl="~/profilepics/&lt;%#DataBinder.Eval(Container.DataItem, "username") %&gt;.jpg" /&gt;
  </code></pre>