title: ASP.NET Repeater control with nested repeaters
body: <p>I have a nested repeater control. Here is what the HTML looks like:</p>
  
  <pre><code>&lt;ItemTemplate&gt;
      &lt;div class="boxLeft"&gt;
          &lt;h4&gt;&lt;%# DataBinder.Eval(Container.DataItem, "DisciplineName") %&gt;&lt;/h4&gt;&lt;asp:Label runat="server" ID="lblDisciplineID" Visible="false" Text='&lt;%# DataBinder.Eval(Container.DataItem, "DisciplineID") %&gt;'&gt;&lt;/asp:Label&gt;
          &lt;p&gt;&lt;%# DataBinder.Eval(Container.DataItem, "DisciplineNarrative") %&gt;&lt;/p&gt;
          &lt;h5 class="articles"&gt;&lt;%# DataBinder.Eval(Container.DataItem, "InstructorCount")%&gt; instructors&lt;/h5&gt;
          &lt;ul&gt;
              &lt;asp:Repeater runat="server" ID="rptRegions"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;li&gt;&lt;a href='/Lessons/&lt;%# DataBinder.Eval(Container.DataItem, "DisciplineName") %&gt;/&lt;%# DataBinder.Eval(Container.DataItem, "CityName") %&gt;'&gt;&lt;%# DataBinder.Eval(Container.DataItem, "CityName") %&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:Repeater&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p>As you can see, I want to access the parent DisciplineName property from the parent repeater, in my child repeater in order to build the URL. I get the following error:</p>
  
  <blockquote>
    <p>DataBinding: 'GolfLessonSearch.Model.CityEntity' does not contain a
    property with the name 'DisciplineName'.</p>
  </blockquote>
  
  <p>This is because it is trying to get "DisciplineName" from the child repeater but I want it from the parent repeater. I thought that the properties may still be in scope but it appears not. Is there any way of getting this?</p>