c# code in control attribute in aspx file
<p>I'd like to change the text attribute of a button according to the session landuage. So I write:</p>

<pre><code>&lt;asp:Button id="btOptIn" runat="server" 
    Text="&lt;% = UI.Instance.TxtSubmit %&gt;"
    onclick="btOptIn_Click" /&gt;
</code></pre>

<p>This does not work. I tried several other versions (like <code>Text='&lt;%# Eval(UI.Instance.TxtSubmit) %&gt;'</code>) but could not succeed.</p>

<p>The same code (<code>&lt;% = UI.Instance.TxtSubmit %&gt;</code>) works outside the quotes of the attribute. What is the syntax to make it work within an attribute of a control?</p>

<p>Thank you for your time.</p>
