title: ASP string concatenation from web.config in img src
body: <p>I am trying to retrieve a path string from my web config file and use that plus the file name to get the url of the image I need. I think it should be something like this:</p>
  
  <pre><code>&lt;asp:Image ImageUrl ='&lt;%# System.Configuration.ConfigurationManager.AppSettings["AppPath"] + "&amp;Images/headerbk01.jpg"%&gt;' runat ="server" width="983" height="265" /&gt;
  </code></pre>
  
  <p>Which gives me an empty string for the source.</p>
  
  <p>Edit:</p>
  
  <p>Now using this:</p>
  
  <pre><code>&lt;asp:Image ImageUrl ='&lt;%=System.Configuration.ConfigurationManager.AppSettings["AppPath"]+"&amp;Images/headerbk01.jpg"%&gt;' runat ="server" width="983" height="265" /&gt;
  </code></pre>
  
  <p>Produces this as html:</p>
  
  <pre><code>&lt;img style="width: 983px; height: 265px;" src="&lt;=System.Configuration.ConfigurationManager.AppSettings["AppPath"]+"&amp;Images/headerbk01.jpg"%&gt;"/&gt;
  </code></pre>