Best place to store connection string/class
Posted on 2004-10-11
I'm building an asp.net website.
For the asp.net web pages that need a connection string, I can put the connection string in the web.config file and use it/change it as needed. I was planning on creating a few separate projects for the reusable parts, so was going to create a few stand alone components. However, the vb.net project does not have a web.config file, so where is the best place to store the connection string?
Also saw a friend put classes within a folder in his asp.net web project. He was able to use web.config to store his connection string. Is that a good idea?
Thanks for any help.