DEFINE statement?
-
in c++ i grew accustomed to using
DEFINE
statements for my common text variables.. is there a way to do something like this in asp.net with c# in the global.asax? like:DEFINE USER_COMMON 100
DEFINE USER_MOD 200
DEFINE USER_ADMIN 400etc.. thanks! still a newb.. cut me some slack :P -dz
-
in c++ i grew accustomed to using
DEFINE
statements for my common text variables.. is there a way to do something like this in asp.net with c# in the global.asax? like:DEFINE USER_COMMON 100
DEFINE USER_MOD 200
DEFINE USER_ADMIN 400etc.. thanks! still a newb.. cut me some slack :P -dz
You can use
#define
just like in C / C++ in C#. Please refer to the C# Preprocessor Directives[^]"The greatest danger to humanity is humanity without an open mind."
- Ian Mariano - http://www.ian-space.com/ -
You can use
#define
just like in C / C++ in C#. Please refer to the C# Preprocessor Directives[^]"The greatest danger to humanity is humanity without an open mind."
- Ian Mariano - http://www.ian-space.com/ -
You can use
#define
just like in C / C++ in C#. Please refer to the C# Preprocessor Directives[^]"The greatest danger to humanity is humanity without an open mind."
- Ian Mariano - http://www.ian-space.com/guess i need a little more help.. ive added a line at the top of my aspx page which says:
#define User_Admin "Administrator"
then later in the html secion of the page i have
<%= User_Admin %>
but i get a compiler error of
CS0103: The name 'User_Admin' does not exist in the class or namespace 'ASP.DailyNews_aspx'
thanks for the help! still a newb.. cut me some slack :P -dz