What is the differences between connectionstring and appsettings?

Posted by n10i on Stack Overflow See other posts from Stack Overflow or by n10i
Published on 2010-06-16T16:37:12Z Indexed on 2010/06/16 16:42 UTC
Read the original article Hit count: 275

Filed under:
|

in one of the application i have been reffering connection string is stored in appsettings! till now i have been storeing the connection in <connectionstring/> element. But, what is the correct way?

So my quetion is, What is the differences between <connectionstring> and <appsettings> in web.config, are there any specific reason why i should or should not be storing connection string in appsettings? Are there any rules / guidlines provided to follow? Or is this completely the choice of the developer?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about settings