D
David
Hey evryone,
I have a ASP.NET project that I'm working on and have been using a
static class to store all my global constant information eg.
MyGlobalClass.MyConnectionString. This has worked out well but it means
that if I want to change any of the values I need to recompile.
The examples I have seen have retrieved values from Web.Config file. I
don't really want to do this because it would mean writing to this file
on a regular basis and I think that restarts the application as well,
and I'm also not too sure of how to retrieve these values from my
business layer that is not really part of the web side of the project.
I could have a class that accepts a connection string as an argument
that connected to a database for initialization but then every time I
used it I would need to get this data all over again.
Any ideas/suggestions?
Cheers,
David.
I have a ASP.NET project that I'm working on and have been using a
static class to store all my global constant information eg.
MyGlobalClass.MyConnectionString. This has worked out well but it means
that if I want to change any of the values I need to recompile.
The examples I have seen have retrieved values from Web.Config file. I
don't really want to do this because it would mean writing to this file
on a regular basis and I think that restarts the application as well,
and I'm also not too sure of how to retrieve these values from my
business layer that is not really part of the web side of the project.
I could have a class that accepts a connection string as an argument
that connected to a database for initialization but then every time I
used it I would need to get this data all over again.
Any ideas/suggestions?
Cheers,
David.