[2005] set app.config value
is there a missing line why the new values were not save to app.config?
vb Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key ="defaultuser" value ="Test"/>
<add key ="defaultpass" value ="1234abcd"/>
</appSettings>
</configuration>
vb Code:
ConfigurationManager.AppSettings.Item("defaultuser") = userNameTextBox.Text.ToString
ConfigurationManager.AppSettings.Item("defaultpass") = passwordTextBox.Text.ToString
Re: [2005] set app.config value
Have you read the code in my Protected Configuration thread? There's more to saving changes to the actual config file than just that. All you're doing is editing VB objects held in memory.
Re: [2005] set app.config value
OFFT: Isn't it a bit dumb to save user/pw in a text based file ?
Re: [2005] set app.config value
Quote:
Originally Posted by Link
OFFT: Isn't it a bit dumb to save user/pw in a text based file ?
Apparently YOU haven't read my Protected Configuration thread. :)