title: ASP.NET User control Eval() problem
body: <p>I have a user control that contains a repeater. I use the Eval() method to output data which works for the  part of the repeater, but it doesn't output any data for the  (Which uses the same code)</p>
  
  <p>Any ideas why this isn't working? </p>
  
  <p>I have the following code in the repeater user control:</p>
  
  <pre><code>&lt;asp:Repeater runat="server" ID="repeater1"&gt;
           &lt;HeaderTemplate&gt;
           //Data is not displayed in the HeaderTemplate
                  &lt;table class="datatable fullwidthpercent"&gt; 
                  &lt;tr&gt;
                     &lt;th&gt;
                          &lt;%# Eval(Column2Name) %&gt;
                     &lt;/th&gt;
                  &lt;/tr&gt;
       &lt;/HeaderTemplate&gt;
       &lt;ItemTemplate&gt;
       //Data is displayed in the ItemTemplate
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;%# Eval(Column2Name) %&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;                   
              &lt;/ItemTemplate&gt;
  </code></pre>