views:

74

answers:

2

I have customer specific settings in a custom.config which links back to web.config.

What I want to accomplish is to load the settings from appsettings section in custom.config into setup.aspx page. The settings will be loaded into textbox, dropdown list etc. After the user makes changes then save it back to custom.config. Is this possible? It seems to me that the appSettings section is readonly. What would be best approach to accomplish this?

+3  A: 

That sounds like you need a database... config files are not really meant to store user data. Editing web.config generally causes app pool restart, not sure if custom config works the same way but I would not be surprised.

liho1eye
A: 

See the links .... But if you want to change or update the values frequently then you should use Database rather then configuration file..

AppSettings In web.config

update web.config file appsettings value

Azhar
The values won't change frequently. There are about 4 drop-down list and 6 text boxes. The information will be customer specific eg: domain name. the directory to their files, template email etc.