如何使用webconfig配置数据库连接字符串
<appSettings>
<add key="sqlConnectionString" value="Data Source=jason\SQLExpress;Initial catalog=vote;User ID=sa;pwd=110110"></add>
</appSettings>
<add key="sqlConnectionString" value="Data Source=jason\SQLExpress;Initial catalog=vote;User ID=sa;pwd=110110"></add>
</appSettings>
SqlConnection sqlcon = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]); //读取config文件中的字符串