title: ASP.NET MVC Razor: Add empty value to a DropDownList
body: <p>I tried for hours to get it work, but now I have to ask..</p>
  
  <p>As read in <br>
  <a href="https://stackoverflow.com/questions/942262/add-empty-value-to-a-dropdownlist-in-asp-net-mvc">/942262/add-empty-value-to-a-dropdownlist-in-asp-net-mvc</a> and 
  <a href="https://stackoverflow.com/questions/3780614/mvc-clear-default-selected-value-of-selectlist">/3780614/mvc-clear-default-selected-value-of-selectlist</a>
  <br>I want to add an empty space to dropdown lists in my ASP.NET MVC Razor WebApp with Entity Framework 5 to force the user for an input.</p>
  
  <p>I followed the informations, but what happend in the View is that: <a href="https://i.stack.imgur.com/EXSgT.png" rel="nofollow noreferrer">http://i.stack.imgur.com/EXSgT.png</a>
  <br> So, as you see, there is an empty space, but it isn't selected by default. Instead, my "testproject", as first value from my controller, is marked.. Not the empty space.
  So where did I fail? 
  <br>
  <br>
  Thanks a lot.
  <br> <br> </p>
  
  <p>My <strong>model</strong> looks like that:</p>
  
  <pre><code>    [...]
      using System.Web.Mvc;
  
      public class UploadTranferContainer
      {    
           [DisplayName("Project")]
           public int ProjectID { get; set; }
  
           public SelectList Projects { get; set; }
      }
  </code></pre>
  
  <p>My <strong>controller</strong> fills the data in like:</p>
  
  <pre><code>    UploadTranferContainer container = new UploadTranferContainer();
      container.Projects = new SelectList(db.Projects.AsEnumerable(), "ProjectID", "ProjectName");
  </code></pre>
  
  <p>And the <strong>view</strong> unpacks my container like:</p>
  
  <pre><code>        &lt;div class="editor-label metadataLabel"&gt;
              @Html.LabelFor(x =&gt; x.ProjectID)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.DropDownListFor(x =&gt; x.ProjectID, Model.Projects, string.Empty)
          &lt;/div&gt;            
  </code></pre>