Configuring asp.net web applications. Best practices

Posted by Andrew Florko on Stack Overflow See other posts from Stack Overflow or by Andrew Florko
Published on 2010-05-19T02:52:31Z Indexed on 2010/05/19 3:00 UTC
Read the original article Hit count: 584

Hello everybody,

There is a lot of configurable information for a web-site:

  • UI messages
  • Number of records used in pagination & other UI parameters
  • Cache duration for web-pages & timeouts
  • Route maps & site structure
  • ...

There are many approaches to store all this information also:

  • AppSettings (web.config)
  • Custom sections (web.config)
  • External xml/text files referred from web.config
  • Internal static class(es) of constants
  • Database table(s)
  • ...

What approaches do you usually choose for your tasks & what approaches do you find unsuitable?

Thank you in advance!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about configuration