How can I reference a constant in a cs from an aspx?

bear2008

New Member
How can I reference a constant from constants.cs in page.aspx\[code\]<!-- I have no references in page, is that missing? --><uc:MyControl ID="id runat="server" ConstantValue="http://stackoverflow.com/questions/12795128/<% =Constants.TheValue %>" />\[/code\]In Constants.cs\[code\]public const string TheValue = "http://stackoverflow.com/questions/12795128/Hello, World";\[/code\]
 
Back
Top