How To: Change the Value of a Setting Between Application Sessions
At times, you might want to change the value of a setting between application sessions after the application has been compiled and deployed. For example, you might want to change a connection string to point to the correct database location. Since design-time tools are not available after the application has been compiled and deployed, you must change the setting value manually in the file.
To Change the Value of a Setting Between Application Sessions
Using Microsoft Notepad or some other text or XML editor, open the .config file associated with your application.
Locate the entry for the setting you want to change. It should look similar to the example presented below.
<setting name="Setting1" serializeAs="String" > <value>My Setting Value</value> </setting>
Type a new value for your setting and save the file.