You're correct about classes always being compiled in .NET.
What I was referring to was a (compiled) class that accesses your custom file and return its values.
That would give you a programming model similar to the AppSettings class (which basically does the same thing) but with your own custom files.
Then you could do things like this:
Code:
Dim sConnection As String
sConnection = Helpers.AppSettings.Get("ConnectionString")
The Get method of the AppSettings class in your Helpers namespace would then read in your custom config file (you could use the default Web.Config to store the location(s) of your custom config files) and retrieve the required key.
For optimal performance, the returned values can be cached, so you can return them from the cache rather than hitting the file again on each subsequent request. The cache will be automatically invalidated when your main Web.Config file changes, or you can build in some code to invalidate the cache when relevant (built a file dependency on your own config files).
Does this help?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.