title: Converting ASP classic table to ASP.NET Repeater
body: <p>I am trying to modernize this site. I have a report table being generated in the old style like:</p>
  
  <pre><code>Dim sTable = "&lt;table class=""stat""&gt;"
  sTable = sTable &amp; "&lt;thead&gt;&lt;tr&gt;&lt;th colspan=20&gt;&lt;Status Report: " &amp; Session("ProcessYear") &amp; "&lt;/th&gt;&lt;/tr&gt;"
  </code></pre>
  
  <p>I am converting this into a Repeater, but I am at a loss as to how to include session data in the <code>&lt;HeaderTemplate&gt;</code>. I have:</p>
  
  <pre><code>&lt;asp:Repeater id="Dashboard" runat="server"&gt;
  &lt;HeaderTemplate&gt;
      &lt;table class="stat"&gt;
          &lt;thead&gt;
              &lt;tr&gt;&lt;th colspan="20"&gt;Appeal Status Report: ???? &lt;/th&gt;&lt;/tr&gt;
  ...
  </code></pre>
  
  <p>Some candidates are <code>asp:PlaceHolder</code>, and something like <code>&lt;%# ((RepeaterItem)Container.Parent.Parent).DataItem %&gt;</code> (see <a href="https://stackoverflow.com/questions/1411336/accessing-parent-data-in-nested-repeater-in-the-headertemplate#1411385">Accessing parent data in nested repeater, in the HeaderTemplate</a>), but I'm at a loss as to what that is referencing. </p>
  
  <p>Not in a position to refactor out the Session dependencies, unfortunately. Any thoughts? I'm fairly new to ASP.NET. My CodeFile for this page is in VB.NET.</p>