27 Apr 2009

AppSettings In web.config

The appSettings is an element of a web.config template to store connection strings needed to run the application.


• Put The next code in aweb.config



• How to call the AppSettings in C# ?
Using(SqlConnection con=new SqlConnection(ConfigurationManager.AppSettings["connectionString"].ToString()))
{
Con.Open();
.
.
.
}