title: Iterate through a site relative path to find files (ASP.NET MVC 3)
body: <p>I have a folder in my web application (ASP.NET MVC 3) which contains a set of images. I want to use a foreach loop to iterate through the folder to get the site relative paths which I can then append to an image tag.</p>
  
  <p>Example</p>
  
  <pre><code>&lt;div class="slides"&gt;
  @foreach(string file in ?????)
  {
      &lt;img src="@file" alt="filename without extension"&gt;
  }
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I do this?</p>
  
  <p>NOTE: my current foreach loop is trying to look through a physical path and returns this error</p>
  
  <pre><code>Could not find a part of the path 'C:\Content\Images\Photography\Slides\'.
  </code></pre>