Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports .NET 2.0: Configuration Guidelines

Friday, August 24, 2007

Configuration Guidelines

- Don't hardcode any connectivity information in your code.
- Put database connection information in section of Web.Config.
- Put application strings in section of Web.Config.
- 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 section.
+ 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

Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports