title: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control
body: <p>I am getting the following error</p>
  
  <blockquote>
    <p>Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.</p>
  </blockquote>
  
  <p>but all I am trying to do is inside a ASP.NET REPEATER Control</p>
  
  <pre><code>&lt;% if ( Eval("Message").ToString() == HttpContext.Current.Profile.UserName) %&gt;
  &lt;% { %&gt;
  
             &lt;asp:ImageButton runat="server" etc.... /&gt;
  &lt;% } %&gt;
  </code></pre>