title: How to loop through data in WebForms like in MVC
body: <p>How do I loop through data in WebForms like I do in ASP.NET MVC?  For instance, in MVC, this is as simple as:</p>
  
  <pre><code>&lt;table&gt;
      @foreach (var myItem in g)
      { 
          @&lt;tr&gt;&lt;td&gt;@MyItem.title&lt;td&gt;&lt;/tr&gt;
      }
  &lt;/table&gt;
  </code></pre>
  
  <p>What would the code behind look like?</p>
  
  <p>Or, can I add an MVC project to a WebForms application so that I can use MVC functionality, instead?</p>