http://www.cnblogs.com/njlhb/archive/2007/08/28/873403.html
<appSettings> <add key="SqlServerConnectStr" value="Server=127.0.0.1;Database=yingcai;User ID=sa;Password=sa"/> </appSettings>
using System.Configuration;System.Configuration.ConfigurationManager.ConnectionStrings["SqlServerConnectStr"].ToString()