How to edit Visual C# xml config file

Hi Experts

I have a registry entry with the location of my database inside, and inside of the xml config file it defines the path of the database, but it is hard coded... I can display the information of the registry in a label, but how do i get the path that's in the registry inside of the xml config file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
    </configSections>
    <connectionStrings>
        <add name="Road_Call_Fuel_Transactions.Properties.Settings.TransportScheduling_ConnectionString"
            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\ben\TransportScheduling_be.mdb"
            providerName="System.Data.OleDb" />
    </connectionStrings>
</configuration>

Open in new window

BenvorAsked:
Who is Participating?
 
DhaestCommented:
I can't completely follow. What exactly are you trying to do ?

How to change App.config file run time using C#
http://chiragrdarji.wordpress.com/2008/09/25/how-to-change-appconfig-file-run-time-using-c/
0
 
BenvorAuthor Commented:
never mind, that piece of code works 100% thanx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.