Storring data in web.config(custom section/appSettings element) vs storing it in a class

Posted by rubysons on Stack Overflow See other posts from Stack Overflow or by rubysons
Published on 2009-08-25T21:15:14Z Indexed on 2010/05/09 15:28 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

Hi.

Why is it better to store data inside an appSettings element (or inside a custom section) of a web.config file than to store it in a class?

One argument would be that by using custom sections we don’t have to recompile code when we change data, but that’s a weak argument, especially if we’re using Web Sites, which get recompiled automatically whenever code changes!


Thank you

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-config