public void SetAppSettingsVal(string node, string newValue) { System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.Settings[node].Value = newValue; config.Save(ConfigurationSaveMode.Modified); ConfigurationManager.RefreshSection("appSettings"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)