dragonfly
dragonfly

Reputation: 17773

Handling web.config files - alternative to ConfigurationManager

The other day I came across an alternative way of accessing web.config configuration in some article. It allowed to:

But that solution slipped my mind :/ I remember that the article was titled (something like this): Way of using application configuration in web applications.

Could somebody came across that solution and could refresh my memory with a link ? :)

Upvotes: 1

Views: 711

Answers (1)

Tim Robinson
Tim Robinson

Reputation: 54734

Was it System.Configuration.Configuration?

Call WebConfigurationManager.OpenWebConfiguration with a file name to get a Configuration instance, which has its own AppSettings collection.

Upvotes: 5

Related Questions