Hi
Add below example code in your web.config file
</configSections>
<appSettings>
</appSettings>
<connectionStrings>
after that use belo header file and code to get value of variable.
using System.Configuration;
DataUtil du = new DataUtil();
public SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["School"].ConnectionString);