Accessing my app.config

ez416

Member
Joined
Apr 17, 2007
Messages
9
Programming Experience
1-3
It is possible to get a value from my app.config?

for example:

<connectionStrings>
<
add name="AccessCON" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\db1.mdb"
providerName="System.Data.OleDb" />
</
connectionStrings>

What I need is it possible to get the value the name "AccessCoN". & then after getting the value it will displayed to a textbox?

textbox1.text = "AccessCON".connectionstring

the value of the textbox should be,

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\db1.mdb


 
Back
Top