Take Control of Your Web.Config

added by derans
2/9/2010 10:30:00 AM

7 Kicks, 537 Views

After reading a Paul Sheriff article in CODE Magazine, I ended up creating a base WebConfig class to handle getting values out of my web.config. I’ve hated the ConfigurationManager.AppSettings since they deprecated it from ConfigurationSettings.AppSettings. So now I have my own GetAppSetting so I never have to worry about it again. My base class looks like this:


1 comments

leedumond
2/3/2010 2:14:13 AM
Long way around the barn. This guy has basically reinvented the Configuration API.