title: To to set text of checkbox inside repeater
body: <pre><code>&lt;ItemTemplate&gt;
          &lt;tr&gt;
          &lt;td&gt;
              &lt;asp:CheckBox runat="server" Text="&lt;%#Container.DataItem('Text')%&gt;" /&gt;  
          &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p>How do I get Text to be set from the bound field (which is also called Text)? I tried many ways like Val("") but it always says an error. </p>
  
  <p>For the example above it says : Compiler Error Message: CS1012: Too many characters in character literal.</p>
  
  <p>If I change it to <code>&lt;asp:CheckBox runat="server" Text="&lt;%#Container.DataItem("Text")%&gt;" /&gt;</code>     -- it says : Parser Error Message: The server tag is not well formed.</p>