title: eval in if statement?
body: <pre><code> &lt;% if(Eval("SaveDate") != DBNull.Value){ %&gt;
       do magic                           
   &lt;%} %&gt;
  </code></pre>
  
  <p>gives me error: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.</p>
  
  <p>I could write : &lt;%# Eval("SaveDate") != DBNull.Value ? do magic
  But I need to do lots of html magic in if statement.</p>
  
  <p>I know I should add # in order to use Eval, but not sure about correct syntax. </p>