Can I use <%= ... %> to set a control property in ASP.NET?
<pre><code>&lt;asp:TextBox ID="tbName" CssClass="formField" MaxLength="&lt;%=Constants.MaxCharacterLengthOfGameName %&gt;" runat="server"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>The code above does not work. I can set the MaxLength property of the textbox in the code behind but i rather not. Is there away I can set the MaxLength property in the front-end code as above?</p>
