web.config <appSettings> <add key="TempConnectionString" value="Data Source=.;Inital Catalog=Temp;User ID=sa;Password="/> </appSettings> <connectionStrings> <add name="NorthwindConnectionString" connectionString="Data Source=.;Inital Catalog=Northwind;User ID=sa;Password=" providerName="System.Data.SqlClient"/> </connectionStrings> default.aspx protected void Page_Load(object sender, EventArgs e) { this.Response.Write(WebConfigurationManager.AppSettings["TempConnectionString"]); this.Response.Write("<br />"); this.Response.Write(WebConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString); }