G
Guest
Hai can any one help me on this issue?
I am working on VB.NET. Let us assume, that i use 2 Config files (App.config & App1.config) for different purposes. Using System.configuration i can read the contents of App.config file with out setting the name of the config file in the code,
i.e., I use the following lines,
#######
Imports System.Configuration
..
..
Dim x = ConfigurationSettings.AppSettings("constring")
MsgBox(x)
#######
I get the result. (whatever connection string i set in the config file appears as msgbox)
Here i am not setting the Name of the Config file(as you find from the code.)
Is there any way to set the name of the file to App1.config and read its contents?
Thanks
V.Boomessh
I am working on VB.NET. Let us assume, that i use 2 Config files (App.config & App1.config) for different purposes. Using System.configuration i can read the contents of App.config file with out setting the name of the config file in the code,
i.e., I use the following lines,
#######
Imports System.Configuration
..
..
Dim x = ConfigurationSettings.AppSettings("constring")
MsgBox(x)
#######
I get the result. (whatever connection string i set in the config file appears as msgbox)
Here i am not setting the Name of the Config file(as you find from the code.)
Is there any way to set the name of the file to App1.config and read its contents?
Thanks
V.Boomessh