title: Set selected value in dropdownlist from MVC Controller
body: <p>I am binding a dropdownlist using the below code</p>
  
  <p>Model</p>
  
  <pre><code>public IEnumerable&lt;TitleNew&gt; TitleOption =
      new List&lt;TitleNew&gt;
      {
          new TitleNew {Id = 0, Value = "---Select---"},
          new TitleNew {Id = 1, Value = "Mr."},
          new TitleNew {Id = 2, Value = "Ms."}
      };
  
  public class TitleNew
  {
      public int Id { get; set; }
      public string Value { get; set; }
  }
  public string Title { get; set; }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>@Html.DropDownListFor(m =&gt; m.Title,
                                   new SelectList(Model.TitleOption,
                                  "Id", "Value",
                                   Model.TitleOption.First().Id))
  </code></pre>
  
  <p>I was unable to set the selected value to dropdownlist. The selected value comes from the database and it sets for Title property.
  Please help me out.</p>