I have some instances of
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtNew" ErrorMessage="Folder path can only contain alphanumeric characters." ValidationExpression='<%# NewFolderRegEx %>' ValidationGroup="New" />
spread throughout my project. I set up a constant named "NewFolderRegEx" in a class that is imported by all of these pages, so that I can simply change the regular expression once, and have it apply across the board. However, actually accessing that constant from within the control, as shown above, is messing with me. What's the proper syntax for bringing in a variable like that?