Link to home
Start Free TrialLog in
Avatar of Benvor
BenvorFlag for South Africa

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Benvor

ASKER

never mind, that piece of code works 100% thanx