Change App.config settings at runtime

  • Thread starter Thread starter john pp nn
  • Start date Start date
J

john pp nn

Guest
Hi folks,

In my WinForms app, I have the connections to the databases set up in the app.config file..


<connectionStrings>
<add name="local" connectionString="server=***.**.**.**;Uid=root;Pwd=****;database=epos;/>
<add name="local" connectionString="server=***.**.**.**;Uid=root;Pwd=****;database=lhdms;" />
</connectionStrings>

But what I need to do is change the server, database and Pwd properties at runtime based on the user settings

Can this be done ?


Thanks,

John






jppnn

Continue reading...
 
Back
Top