1: 2: 3: 4: 5: 6:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add name="MyConnectionString" connectionString="Data Source=MyComputer\SQLEXPRESS;Initial Catalog=MyDb;Integrated Security=SSPI;"/> </connectionStrings>
1: 2: 3:
Dim appSettings As Specialized.NameValueCollection = ConfigurationManager.AppSettings
1: 2:
connString = ConfigurationManager.AppSettings( "MyConnectionString" )