title: .Net MVC 4 Dropdownlistfor SelectedItem (Not just selected value, but the selected text)
body: <p>I have a for loop to generate IEnumerable list:</p>
  
  <pre><code>public static IEnumerable&lt;SelectListItem&gt; loadData()
  {
      DataTable dt = load_from_database;
      List&lt;SelectListItem&gt; list = new List&lt;SelectListItem&gt;();
      foreach (DataRow dr in dt.Rows)
      {
          SelectListItem listItem = new SelectListItem();
          listItem.Text = dr["name"].ToString();
          listItem.Value = dr["id"].ToString();
          list.Add(listItem);
      }
      return list;
  }
  </code></pre>
  
  <p>And I have the following model:</p>
  
  <pre><code>public class Models
  {
      public string selectedUserApp { get; set; }
      public IEnumerable&lt;SelectListItem&gt; userApps  { get; set;  }
  }
  </code></pre>
  
  <p>And the controller:</p>
  
  <pre><code>public ActionResult Index()
  {
      var model = new UserApplicationModels();
      userAppsList = loadData();
      model.userApps = userAppsList;
      model.selectedUserApp = model.userApps.First().Value;
  
      return View(model);
  }
  </code></pre>
  
  <p>Then the view:</p>
  
  <pre><code>@model Models
  
  @Html.DropDownListFor(x=&gt;x.selectedUserApp , Model.userApps)
  </code></pre>
  
  <p>What I got is the value of the selected item, but I need to get the text of selected item. </p>
  
  <p>What can I do?</p>