A
Alan Silver
Hello,
I have a web site that uses themes. I would like to have an option on
the site owner's administration page where they can set the theme. This
page would then write the new value into the web.config file.
I can't seem to work out how to do this. I guess I need to use the
AppSettingsSection class, but I'm not sure. I can't find any concrete
examples of doing this anywhere. I tried copying the sample code from
the MSDN docs for the AppSettingsSection class, but this seemed to be
working on an empty file. I couldn't see how to tell it to look at
web.config.
Anyone able to help?
I have a web site that uses themes. I would like to have an option on
the site owner's administration page where they can set the theme. This
page would then write the new value into the web.config file.
I can't seem to work out how to do this. I guess I need to use the
AppSettingsSection class, but I'm not sure. I can't find any concrete
examples of doing this anywhere. I tried copying the sample code from
the MSDN docs for the AppSettingsSection class, but this seemed to be
working on an empty file. I couldn't see how to tell it to look at
web.config.
Anyone able to help?