title: ASP.NET Nested databinding - accessing parent dataitem
body: <p>I have a formview and inside it's itemtemplate a repeater. I need to access the dataitem from formview inside the repeater.</p>
  
  <p>Something like this</p>
  
  <pre><code>&lt;asp:FormView runat="server" ID="EvaForm" ItemType="Item1" DataKeyNames="ProfileId" EnableViewState="true"&gt;
    &lt;ItemTemplate&gt;
     &lt;asp:Repeater runat="server" ID="ProfileImages" ItemType="ProfileImage"&gt;
      &lt;ItemTemplate&gt;
       &lt;a href="&lt;%# LinkHelpers.GetProfilePath(Item.ProfileId, &gt;&gt;&gt;&gt;ITEM1 HERE&lt;&lt;&lt;&lt;.CreateDate) &amp; Item.ImagePath%&gt;" onclick="return false;"&gt;
  </code></pre>
  
  <p>An example with EVAL also together with an example with ItemType would be greatly appreciated.
  All this is inside a User Control, don't think this will make difference.</p>
  
  <p>Thanks in advance</p>