How to concat a variable into some <asp: .. /> attriute?
<p>I'm working on small web form,in C#/ASP.NET. I want to store the errors messages into variables of C# class; something like this:</p>

<pre><code>public static class ErrorMessages { 
 public static string fooX = "baa"; 
 // etc..
}
</code></pre>

<p>And then concat it in some attribute of an <code>ASP</code> tag:</p>

<pre><code>&lt;asp:RegularExpressionValidator runat="server"
     ControlToValidate="baain"
     ErrorMessage= *ErrorMessages.fooX*
 /&gt;
</code></pre>

<p>it's possible? if yes, how to do this? </p>

<p>Different solutions for solve it is very appreciated.
Thanks in advance.</p>
