Modifying the app.config file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I a connection string stored in the app.config file. What is the best way, if
any, to modify the file to broaden a setting? For example, the default value
needs to be written on setup to look within an IP space location (the first
three parts of the octet). Later, if the user wants to see more, I want to
provide a method for them to add other IP spaces for their reader using that
connection string.

Wrong way or is there a better way?

Thanks,

E.
 
Correction... it would be the select statement I need to modify for this one.
The connection string will not change now. Can such a default be added to the
..config file as a new key value? I'm looking on msdn, but not finding
something. Maybe the words I use to look for it.

E.
 
Ian Griffiths wrote a blog on this recently

http://www.interact-sw.co.uk/iangblog/2004/11/25/savingconfig

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.interact-sw.co.uk/iangblog/2004/11/25/savingconfig

Correction... it would be the select statement I need to modify for this one.
The connection string will not change now. Can such a default be added to the
.config file as a new key value? I'm looking on msdn, but not finding
something. Maybe the words I use to look for it.

E.
 
So when creating the installer, create the application data folder for my app
and store it there? Sounds doable.

Thanks, Richard.

E.
 
Back
Top