title: how to loop through IEnumerable<dynamic> model in MVC
body: <p>I have the following code in MVC view. The view is receiving IEnumerable of Anonymous Type. it has 3 fields - TranscriptReqStatusID, TranscriptReqStatusDesc and Count. I am not able to loop and put the data in a Table. It's giving me this error - " <em>Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'object' does not contain a definition for 'TranscriptReqStatusDesc'"</em></p>
  
  <pre><code>@model IEnumerable&lt;dynamic&gt;
  @{
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;div&gt;
      &lt;table&gt;
          @foreach (dynamic item in Model)
          {
              &lt;tr&gt;
                  &lt;td&gt;@item.TranscriptReqStatusDesc.ToString()&lt;/td&gt;
                  &lt;td&gt;@item.Count.ToString()&lt;/td&gt;                
              &lt;/tr&gt;
          }
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>