title: Asp.net Mvc2 LabelFor and DisplayName from prop
body: <p>Context =></p>
  
  <pre><code>${Html.CheckBoxFor(x =&gt; x.Foos[i].Checked)}
  ${Html.LabelFor(x =&gt; x.Foos[i].Checked)}
  </code></pre>
  
  <p>Problem is - i can't provide label text based on Foo.Name.</p>
  
  <p>Is there out of the box method of how to modify metadata, passing in lambda x=>x.Name to change it? </p>
  
  <p>Is creating another HmtlHelper extension method  </p>
  
  <pre><code>LabelFor(this htmlhelper, [lambda], value, htmlattribs)
  </code></pre>
  
  <p>the only way?</p>
  
  <hr>
  
  <p><a href="http://aspnet.codeplex.com/WorkItem/View.aspx?WorkItemId=4517" rel="nofollow noreferrer">Related issue</a></p>