title: Having difficulty using an ASP.NET MVC ViewBag and DropDownListfor
body: <p>My difficulty is how to use <code>ViewBag</code> with <code>DropdownListFor</code>?</p>
  
  <p>In my controller I am having:</p>
  
  <pre><code>TestModel model = new TestModel();
  ViewBag.Clients = model.Clients;
  ViewBag.StatusList = model.StatusList;
  ViewBag.enumStatus = model.enumStatus;
  ViewBag.intClient = model.intClient;
  </code></pre>
  
  <p>In my TestModel</p>
  
  <pre><code>public SelectList Clients { get; set; }       
  public SelectList StatusList { get; set; }
  public ActiveStatus enumStatus { get; set; }
  public int? intClient { get; set; }
  </code></pre>
  
  <p>In my View</p>
  
  <p>I want to use <code>DropDownListFor</code> to display the ViewBag values, how can I do that?</p>