Check a text box based on its Text value
<p>I have the following checkbox in an asp page-</p>

<pre><code>&lt;asp:CheckBox ID="CheckBox1" runat="server" 
     Text='&lt;%# Container.DataItem.ToString() %&gt;'/&gt;
</code></pre>

<p>I want to set the <code>Checked</code> value to either <code>true</code> or <code>false</code> determined on the </p>

<p><code>Text='&lt;%# Container.DataItem.ToString() %&gt;'</code> value.</p>

<p>So if - <code>'&lt;%# Container.DataItem.ToString() %&gt;'</code> is equal to <code>1</code> then <code>Checked="True"</code>.</p>

<p>How can I achieve this?</p>
