摘要:
第一种:取连接字符串stringconnString=System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SqlConnStr"].ConnectionString;或者protectedstaticstringconnectionString=ConfigurationManager.ConnectionStrings["SqlConnStr"].ConnectionString;web.config文件:加在</configSections>后面<c 阅读全文