title: Pass selected value in dropdownlist from view to controller
body: <p>I have a little problem, I have to pass the parameter from the view to controller, I succes to do it with the input field, but with @ html.dropdownList I don't know how I should do it, can you please help me here is my code:</p>
  
  <p>view :</p>
  
  <pre><code>@using (Ajax.BeginForm("GetFilterList", "Inconsistencies",
  new AjaxOptions
  {
  HttpMethod = "POST",
  UpdateTargetId = "refreshList",
  }, new { @id = "FileList" }
  ))
  {
  
  
  &lt;span class="input-group-addon"&gt;Date de début&lt;/span&gt;
  &lt;input type="text" class="form-control date-picker" placeholder="jj/mm/aaaa" id="StartDate" name="StartDate" /&gt;
  
  &lt;span class="input-group-addon"&gt;Date de fin&lt;/span&gt;
  &lt;input type="text" class="form-control date-picker" placeholder="jj/mm/aaaa" id="EnDate" name="EnDate" /&gt;
  
  &lt;span class="input-group-addon"&gt;Etat inco&lt;/span&gt;
  @Html.DropDownListFor(m =&gt; m.Inconsistences.InconsistencyStateId, Model.StateList, new { id = "state", }) //how to pass the selected value to controller ?
  
  &lt;span class="input-group-addon"&gt;Type inco&lt;/span&gt;
  &lt;input type="text" class="form-control" id="type" name="type" /&gt;
  
  
  &lt;button type="submit" class="btn btn-sm fsc-btn-1" id="search"&gt;
  &lt;i class="fa fa-search"&gt;&lt;/i&gt;
  &lt;span&gt;Recherche&lt;/span&gt;
  &lt;/button&gt;
  
  
  }
  </code></pre>
  
  <p>controller :</p>
  
  <pre><code>   [HttpPost]
  public ActionResult GetFilterList(DateTime? StartDate, DateTime? EnDate, decimal? State, decimal? type)
  {
  InconsistenciesModel model = new InconsistenciesModel();
  
  model.FillDDL();
  model.GetListFilter(StartDate, EnDate,State, type);
  return PartialView("_InconsistenciesList", model);
  }
  </code></pre>