Take the following code:
<asp:TextBox ID="txtFirstName" runat="server" title='<%=Resources.Constants.EmptyFirstName%>' /><em>*</em>
This actually generates a title attribute of <%=Resources.Constants.EmptyFirstName%> rather than executing the code (hence returning the correct value).
Is there any reason for this? Is there a fix?
Why don’t you simply set the attribute value in the code behind file?