title: mvc.net how to use strongly typed helpers while iterating through list
body: <p>I have a partial view that renders a list of objects into a table format and allows editing of the values...</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;IList&lt;whoozit.Models.PictureModel&gt;&gt;" %&gt;
  
  &lt;% foreach (whoozit.Models.PictureModel p in Model)
             { %&gt;
  
    &lt;td&gt;
    &lt;%: Html.TextBox("name",p.name) %&gt;
    &lt;%: Html.ValidationMessage(p.name) %&gt;
    &lt;/td&gt;  
  
  &lt;% } %&gt;
  </code></pre>
  
  <p>I'm wanting to refactor this to take advantage of the strongly typed html helpers in mvc2.  I am running into difficulty understanding how to create the lambda expressions and was hoping for some help.  the following doesn't seem quite correct to me.</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;IList&lt;whoozit.Models.PictureModel&gt;&gt;" %&gt;
  
  &lt;% foreach (whoozit.Models.PictureModel p in Model)
             { %&gt;
  
    &lt;td&gt;
    &lt;%: Html.TextBoxFor(???) %&gt;
    &lt;/td&gt;  
  
  &lt;% } %&gt;
  </code></pre>