Descargado desde el Web de Microsoft
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpgrfaccessingaspnetconfigurationsettings.asp
 

Accessing ASP.NET Configuration Settings

You can access public configuration settings from within an ASP.NET application by using the intrinsic static methods exposed by ASP.NET. For example, to read the value of the cookieless attribute of the <sessionState> section, you could use the following line of code.
[Visual Basic]
Dim nocookies As Boolean = Session.Cookieless
[C#]
bool nocookies = Session.Cookieless;

Application-specific settings stored within the top-level <appSettings> section of Web.config files can be accessed using the ConfigurationSettings.AppSettings static string collection. For example:

[Visual Basic]
Dim dsn As String = ConfigurationSettings.AppSettings("dsn")
[C#]
String dsn = ConfigurationSettings.AppSettings["dsn"];