Using string format for Url.Content doesn't work
<p>I have this little foreach statement in an ASPX page: </p>

<pre><code>&lt;%
foreach(string path in pathList)
{
%&gt;
   &lt;img src="&lt;%=Url.Content(string.Format("~/Content/Images/{0}", path))%&gt;" /&gt;
&lt;%
}
%&gt;
</code></pre>

<p>I want that to display all images using <code>Url.Content</code> from the list of paths.</p>

<p>But my code doesn't work.</p>

<p>In the generated HTML, the above code returns me <code>&lt;img src='/Content/Images/' /&gt;</code> instead of <code>&lt;img src='/Content/Images/page.png' /&gt;</code> and others.</p>

<p>Thanks</p>
