title: DropdownlistFor in a loop, null model on submit
body: <p>I am having an issue with the values selected in multiple dropdownlistfor(s) being available in the controller when the form is submitted.  The model is always blank.  I know there are issues with mvc having dropdowns in loops but I thought I have solved for this.  Let me know what you think.</p>
  
  <p><strong>View</strong></p>
  
  <pre><code>@model DataDictionaryConversion.Models.FinalResults
  
  @{ using (Html.BeginForm("SaveMapping", "Home", FormMethod.Post, null))
              {
                  @Html.AntiForgeryToken()
                  &lt;table class="table table-striped"&gt;
                      &lt;thead&gt;
                          &lt;tr&gt;
                              &lt;th&gt;Converted to Name&lt;/th&gt;
                              &lt;th&gt;Your Project Name&lt;/th&gt;
                              &lt;th&gt;&lt;input type="button" 
  onclick="checkAll()"/&gt;&lt;/th&gt;
                          &lt;/tr&gt;
                      &lt;/thead&gt;
                      &lt;tbody&gt;
  
                      @{for (int x = 0; x &lt; Model.DDObjects.Count(); x++)
                          {
                              var isSelection = false;
                              &lt;tr&gt;
                                  &lt;td class="filterable-cell"&gt;@Model.DDObjects[x].ObjectName&lt;/td&gt;
                                  &lt;td class="filterable-cell"&gt;
  
  @Html.DropDownList(Model.DDObjects[x].ObjectName, new 
  SelectList(Model.ProjectObjects, "ObjectName", "ObjectName"), 
  htmlAttributes: new { @id = "ddlObject", @class = "js-example-basic-single" })&lt;/td&gt;
                                  &lt;/td&gt;
                                  &lt;td&gt;
                                      &lt;input type="checkbox" id="NoValue- 
     @Model.DDObjects[x].ObjectName" name="NoValue- 
     @Model.DDObjects[x].ObjectName" onclick="byPassObject(this)" /&gt; Object 
  Not 
  Used
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          }
                      }
                  &lt;/tbody&gt;
                  &lt;tfoot&gt;
                      &lt;tr&gt;
                          &lt;td style="text-align:right; height:20px"&gt;&lt;input 
  type="submit" class="btn btn-warning" value="Generate Conversion Mapping" 
  /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tfoot&gt;
              &lt;/table&gt;
          }
      }
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code> [HttpPost]
      public ActionResult SaveMapping([FromServices]ApplicationDbContext context, FinalResults model)
      {
  
  
          return View("Mapping");
      }
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>public class FinalResults
  {
  public IList&lt;FinalObjectModel&gt; ProjectObjects { get; set; }
  public IList&lt;Conversion_CSD_ObjectNameLearningModel&gt; DDObjects { 
  get; set; }
  </code></pre>
  
  <p>FinalResults model is null</p>