title: Display all images in a folder in MVC. With a foreach
body: <p>I would like to display all my pictures in my folder "Images_uploads" folder into MVC View. So its display on the site. But nothing seems to work..</p>
  
  <pre><code>{
  
  &lt;form method="post" action="/Images_upload" enctype="multipart/form-data"&gt;  
      &lt;input name="ImageUploaded" type="file"&gt;  
      &lt;input type="submit"&gt;  
  &lt;/form&gt;  
  
  &lt;List&lt;String&gt; li = ViewData["~/images_upload"] as List&lt;String&gt;;
   foreach (var picture in li)
  
      &lt;img src = '@Url.Content("~/images_upload" + picture)' alt="Hejsan" /&gt;
  
  }
  </code></pre>