title: Creating a razor dynamic html table in ASP.Net
body: <p>I'm trying to display RSS news items in a row three at a time. I can currently display each item one in each row at a time using the code:</p>
  
  <pre><code>@foreach (var item in ViewBag.RSSFeed)
      {
          &lt;tr&gt;
              &lt;td&gt;
                  @Html.Raw(item.Description)
              &lt;/td&gt;
          &lt;/tr&gt;
      }
  </code></pre>
  
  <p>I tried to use two loop statements but could not get it to not break the code. How would someone use a loop statement to dynamically generate the contents in a RSS feed in a three items row at a time?</p>