title: How to bind DataTable to @Html.DropDownListFor in asp.net MVC3
body: <p>I have a DataTable which looks like below:</p>
  
  <p>TOTAL_CODE             COD_NAME
  AP0001                 School
  AP0002                 Hospital
  AP0003                 Airport
  AP0004                 House</p>
  
  <p>I am very new to ASP.NET MVC3 and I cannot figure it out how to bind a DataTable to my DropDownListFor control.</p>
  
  <p>PS: I have model as below:</p>
  
  <pre><code>@model Kery.Models.Profile
  @{
      ViewBag.Title = "DetailAdd";
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;P&gt;Please select your sex type: @Html.DropDownListFor(..............)&lt;/p&gt;
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>public class Profile
  {
      public IEnumerable&lt;SelectListItem&gt; SexList { get; set; }
  }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>[HttpGet]
  public ActionResult DetailAdd()
  {
      System.Data.DataTable _dtJikchaekList = _bp.DtReturnS(false
       , "CHP_AJAX_CODEHELPER"
       , "JJ"
       , ""
       , "0"
       );
      return View();
  }
  </code></pre>