title: MVC5 Html.DropDownListFor Does not select correct value
body: <p>I'm doing something horribly simple and it isn't working.</p>
  
  <pre><code> @Html.DropDownListFor(m =&gt; m.ContentDefinitionID, Model.ContentBoxesSelectList, new {@class = "form-control"})
  </code></pre>
  
  <p>The <code>ContentDefinitionID</code> is a <code>UInt64</code> (although I've tried an int)</p>
  
  <p>I use this same select list for 4 different controls on the page.</p>
  
  <p>If my <code>Model.ContentDefinition</code> is set to 4, (which would be <code>test4</code> in the drop down) then it SHOULD pull that selected value from the Model, NOT from the <code>selectList</code> right?  Someone else said that it ignores the value on the <code>SelectList</code> when you use the <code>m=&gt;m.X</code> syntax - which makes sense.</p>
  
  <p>But it always selects the first one.  I tried adding another parameter for what it should select, but it wants the text, not the value and I hate to have to lookup the text.  (And I'm not sure this will post back correctly if I do that anyway)</p>
  
  <p>I'm about to go create some JQuery code to set the default values for everything -but that is crazy.  This is the obvious behavior of the <code>DropDownListFor()</code> method, kind of a 'duh' thing - why doesn't it work?   Do I need to create a custom <code>SelectList</code> for every control that exists on the page?</p>
  
  <p>--- Update, the model etc:</p>
  
  <pre><code>class PageModel
     {
     Int64 ContentDefinitionID {get;set;}
     SelectList ContentBoxesSelectList {get;set;}
     }
  
  Controller init for model:
  
   model.ContentDefinitionID = 4;   // In real situation, this is an
   array of N model.ContentBoxesSelectList = new SelectList( from
   ContentDefinitionDocument doc in allContentBoxes
               where doc.Size == size
               select new {Name = doc.Name, id = doc.DefinitionID}, "Id", "Name");
  </code></pre>
  
  <p>Rendered Output (from it as an array):</p>
  
  <pre><code>            selected value should be: 1
  
              &lt;select class="form-control" data-val="true" data-val-number="The field ContentDefinitionID must be a number." data-val-required="The ContentDefinitionID field is required." id="ContentBoxes_0__ContentDefinitionID" name="ContentBoxes[0].ContentDefinitionID" style="width:25%;float:left"&gt;&lt;option value="1"&gt;Test1&lt;/option&gt;
     &lt;option value="2"&gt;Test 2&lt;/option&gt;
      &lt;option value="4"&gt;Test 4&lt;/option&gt;
      &lt;option value="0"&gt;Test 0&lt;/option&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>And None of them are selected.</p>