Constants and aspx
Posted
by arinte
on Stack Overflow
See other posts from Stack Overflow
or by arinte
Published on 2010-06-16T00:49:11Z
Indexed on
2010/06/16
0:52 UTC
Read the original article
Hit count: 266
asp.net-mvc
I have constants in my cs file Constants.cs. In the asp.net mvc controllers I use the constants like this ViewData[Constants.Whatever] = ...;
How can I use the constants in my aspx file? When I try to use it I get an error saying:
CS0103: The name 'Constants' does not exist in the current context
© Stack Overflow or respective owner