title: MVC DropDownList selected value not working
body: <p>I am using MVC 5.</p>
  
  <p>I have my ViewBag for list as</p>
  
  <pre><code>ViewBag.TitleList = new SelectList((new string[] { "Mr", "Miss", "Ms", "Mrs" }), contact.Title);
  //contact.Title has selected value.
  </code></pre>
  
  <p>then I tried converting the array to <code>SelectListItem ( to no avail)</code></p>
  
  <p>On the View it looks like</p>
  
  <pre><code>@Html.DropDownListFor(model =&gt; model.Title, ViewBag.TitleList as SelectList, "Select")
  </code></pre>
  
  <p>also I tried</p>
  
  <pre><code>@Html.DropDownList("Title", ViewBag.TitleList as SelectList, "Select")
  </code></pre>
  
  <p>The list loads successfully but the <code>Selected Value is Not selected</code>.
  How to Fix this problem?</p>
  
  <p><strong>Update</strong>
  The culprit was ViewBag.Title matching my model.Title. Renamed my model property to something else and it worked. Arrgh!</p>