Asp.net binding a property in ascx not updating on postback
<p>In my aspx file i have this:</p>

<pre><code>addServiceOption(list, {
    ID: null,
    Name: '&lt;%# SelectItemText ?? "[Select a service..]" %&gt;'
});
</code></pre>

<p>and in my code-behind i have of course this property:</p>

<pre><code>public string SelectItemText { get; set; }
</code></pre>

<p>When i change the language on my page, it causes a postback and the new language cookie is set, but that code is irrelevant here, it works.</p>

<p>With breakpoints i've seen that the setter of SelectItemText gets the string in the new language. However, i see that the getter is not called on postback.</p>

<p>I'm pretty sure the &lt;%# %> syntax (which is impossible to search more info about if you don't know the name of the construct) means: only bind this data once, then never again.</p>

<p>The simple solution would be to make a  which i databind the text value to on each postback, but that's a bit too hardcoded and specific for me. Is there a more general solution?</p>

<p>Cheers!</p>
