标签: asp.net
如何在ASP.Net中的web.config文件中存储和检索连接字符串?
答案 0 :(得分:3)
using System.Configuration; ConnStr = ConfigurationManager.ConnectionStrings["some Key"].ToString();