webconfig中数据库的连接接点.
<appSettings>
<add key="conn" value="server=(local);user id=sa;database=database;pwd="></add>
</appSettings>
程序中的字符串连接方法
private string myconn = ConfigurationSettings.AppSettings["conn"];
SqlConnection Conn = new SqlConnection(myconn);