c# Programming Glossary: configurationsavemode.modified
ConfigurationManager doesn't save settings http://stackoverflow.com/questions/4216809/configurationmanager-doesnt-save-settings you should call the Save method ConfigurationManager.Save ConfigurationSaveMode.Modified ConfigurationManager.RefreshSection appSettings EDIT To be able.. .Value txtPassword.Text save to apply changes config.Save ConfigurationSaveMode.Modified ConfigurationManager.RefreshSection appSettings More references..
Change connection string & reload app.config at run time http://stackoverflow.com/questions/502411/change-connection-string-reload-app-config-at-run-time .ConnectionString ConString config.Save ConfigurationSaveMode.Modified true ConfigurationManager.RefreshSection config.ConnectionStrings...
ConfigurationManager.AppSettings - How to modify and save? http://stackoverflow.com/questions/5274829/configurationmanager-appsettings-how-to-modify-and-save e.Payload.IntegrateCheckBox.ToString config.Save ConfigurationSaveMode.Modified So the first time when the entry doesnt exist yet it would simply..
VS2005 C# Programmatically change connection string contained in app.config http://stackoverflow.com/questions/63546/vs2005-c-sharp-programmatically-change-connection-string-contained-in-app-config
Update app.config system.net setting at runtime http://stackoverflow.com/questions/980440/update-app-config-system-net-setting-at-runtime keyname .Value newkeyvalue ... save the file config.Save ConfigurationSaveMode.Modified relaod the section you modified ConfigurationManager.RefreshSection..
|