title: ASP.NET MVC @Html.DropdownListFor wrong selected value
body: <p>I know there are tons of question about this (<a href="https://stackoverflow.com/questions/781987/how-can-i-get-this-asp-net-mvc-selectlist-to-work">this</a> <a href="https://stackoverflow.com/questions/17215558/create-dropdownlistfor-from-selectlist-with-default-value">this</a> and <a href="https://stackoverflow.com/questions/19476530/html-dropdownlistfor-selected-value-not-being-set">this</a>) are some of the questions I read, but I did not found anything that helped:</p>
  
  <p>In my View I have</p>
  
  <pre><code>@Html.DropDownListFor(m =&gt; m.AktPriority, CustomHTMLHeper.GetPriorityDropDown(),new { @class = "form-control" })
  </code></pre>
  
  <p>In my helper</p>
  
  <pre><code>    public static SelectList GetPriorityDropDown()
      {
  
          List&lt;SelectListItem&gt; result = new List&lt;SelectListItem&gt;();
          SelectListItem low = new SelectListItem();
          low.Value = "0";
          low.Text = "Niedrig";
          SelectListItem middle = new SelectListItem();
          middle.Value = "1";
          middle.Text = "Mittel";
          SelectListItem high = new SelectListItem();
          high.Value = "2";
          high.Text = "Hoch";
          return new SelectList(new SelectListItem[] { middle, high, low }, "Value", "Text", "1");
  
      }
  </code></pre>
  
  <p>I expect the item with the value 1 to be selected but following HTML is generated:</p>
  
  <pre><code>&lt;select name="AktPriority" id="AktPriority" class="form-control"&gt;
    &lt;option value="1"&gt;Mittel&lt;/option&gt;
     &lt;option value="2"&gt;Hoch&lt;/option&gt;
      &lt;option value="0" selected="selected"&gt;Niedrig&lt;/option&gt;
     &lt;/select&gt;
  </code></pre>
  
  <p>I also tried setting the Selected Property to true in the helper. This did not work either.</p>