title: How do I bind an Ienumerable<TModel> in a foreach loop?
body: <p>I have an MVC2 view which is strongly bound to a model.</p>
  <pre><code>&lt;%@ Page Language=&quot;C#&quot; MasterPageFile=&quot;~/Views/Shared/Site.Master&quot; Inherits=&quot;System.Web.Mvc.ViewPage&lt;System.Collections.Generic.IEnumerable&lt;AdjustmentModel&gt;&gt;&quot; %&gt;
  </code></pre>
  <p>And in the View I have.</p>
  <pre><code>         foreach (var adjustment in Model)
             {%&gt;
           &lt;tr row=&quot;&lt;%: row %&gt;&quot;&gt;
              &lt;td class=&quot;nonSelectable&quot; column=&quot;0&quot;&gt;
                  &lt;div&gt;
                      ...I want to put a textbox here that has name=&quot;someId&quot; 
                     and val=&quot;someVal&quot; but how?
                  &lt;/div&gt;
              &lt;/td&gt;
  
              }%&gt;
  </code></pre>
  <p>The model is</p>
  <pre><code>class AdjustmentModel
  {
      public int ID;
      public int amount;
  }
  </code></pre>
  <p>I just can't figure the delegate that I pass to Html.TextBoxFor() because when I pass a model the intellisense won't work as I'm passing in an Ienumerable so how do I use the model?</p>