Configuration Guidelines
- Don't hardcode any connectivity information in your code.
- Put database connection information in
- Put application strings in
- Application settings can be drive mappings, IP address, file path, etc.
- Limit the number of Web.Config settings to a small number like 10.
- You shouldn't be changing your Web.Config every day.
- If an application setting will be changed often store it in the database.
+ Use the System.Configuration.ConfigurationManager class.
+ Define your settings in Private Shared variables.
+ Expose your settings as properties from your
+ Settings that need to change with users logged in should be tracked in a database.
Reference: Pro Asp.NET 2.0 Website Programming by Damon Armstrong

0 Comments:
Post a Comment
<< Home