serkan sendur 821 Postaholic Banned Featured Poster
using System.Configuration;
string s = ConfigurationSettings.AppSettings["con"];

the code above gets the value from the app.config file where the following markup exists

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
<appSettings> 
<add key="con" value="foo"/> 
</appSettings> 
</configuration>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.