Easy way to set Enable=True or False based on a property
<p>I have an <code>&lt;ItemTemplate&gt;</code> with an asp:LinkButton in, and I want to set the property Enabled to be true or false depending on a property I Eval(), something like this</p>

<pre><code>    &lt;asp:LinkButton ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" 
Enabled='&lt;%# (int?)Eval("KittenFriendlyStatus") == (int)KittenEnum.Awwwww %&gt;' /&gt;
</code></pre>

<p>However my syntax is completely wrong, can anyone straighten it out for me, or suggest a better way of doing this? I've never done it with C# before, only Javascript.</p>
