you can put the <appsettings> part in another file and manipulate that


Stefan
http://www.dotnetjunkies.com/weblog/stefandemetz


-----Original Message-----
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Clark, Michael
(OFM)
Sent: Saturday, October 16, 2004 12:44 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] How to Programmatically Maintain .config
files?


I've been looking to see how I would go about maintaining a .config file
using some functionality of the System.Configuration class, but all it seems
to be able to do is read the web.config or app.config files and report the
contents.

But what if you want to retain user-configurable settings in a .config file
(without asking the user to mess with the configuration file directly)?  I
know it has to be do-able, but I can't seem to find any documents about it.

Or do I have to read the .config file as an xml file into an XmlDocument and
manipulate it that way?  It would be nice if there was a simpler way.

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 15/10/2004

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to