title: How to bind a classes property to a TextBox?
body: <p>I have a Customer class with a string property comments and I am trying to bind it like this:</p>
  
  <pre><code>&lt;asp:TextBox ID="txtComments" 
               runat="server" 
               TextMode="MultiLine" Text=&lt;%=customer.Comments %&gt;&gt;
  &lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>However, it gives me the error:</p>
  
  <p>Server tags cannot contain &lt;% ... %> constructs.</p>
  
  <p>I also have a method in the class called GetCreatedDate and in the aspx page, I am doing
      &lt;%=GetCreatedDate()%> and &lt;%GetCreatedDate();%>.  What is the difference?</p>