Adding appSettings items programmatically

This shows how to add appSettings items from your codebehind.


Configuration config = ConfigurationSettings.OpenWebConfiguration("~");

AppSettingsSection appSettingsSection = config.AppSettings;

appSettingsSection.Settings["MyKey"] = "The value to save!";

config.Save();

Comments

WTF WMD?

Please fill out all the fields.

*
*