I have bunch of default strings and ints throughout the app. like default names, etc,etc. Those are all constants. I just want to access them in different pages in my app. What is the best place to place them? I was thinking about Enum or something similar. What is the best approach?
Share
The best place is to put them into the appSettings section of your web.config file:
You can then read the key/value pairs using the ConfigurationManager class: