S
Steve
Running asp.net 2.0
I have never used global constants and I am a bit confused on the
subject.
I want to give the admin of an application a lot of control over
display.
i.e. custom error messages, number of rows displayed, etc.
Assuming that all these 'constants' are stored in a database table,
what is the best way of incorporating them into the application?
Should I used global.asax, i.e. make a call to the database, loop
through the values and declare them as constants? If so, can somebody
give me a few lines of code as an example? Are there any better ways?
I have never used global constants and I am a bit confused on the
subject.
I want to give the admin of an application a lot of control over
display.
i.e. custom error messages, number of rows displayed, etc.
Assuming that all these 'constants' are stored in a database table,
what is the best way of incorporating them into the application?
Should I used global.asax, i.e. make a call to the database, loop
through the values and declare them as constants? If so, can somebody
give me a few lines of code as an example? Are there any better ways?