title: MVC - Pass List via ViewBag to View
body: <p>I have a viewbag that has a list of items in it.</p>
  
  <pre><code>    ViewBag.ProgList = resultlst;
  </code></pre>
  
  <p>I am not sure why when I do the following in the view it is not able to retrieve the values.</p>
  
  <pre><code>@foreach (var item in ViewBag.Progist)
  
  { 
  
  
  
    item.ProgID 
  
  
  
  }
  </code></pre>
  
  <p>The result simply shows item.ProgID without any actual values.</p>