而在一些web项目中,可以尝试使用以面代码来取出配置文件中的信息
1 Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(System.Web.HttpContext.Current.Request.ApplicationPath);
从配置文件中取出数据库链接字符串的技巧
标签:
而在一些web项目中,可以尝试使用以面代码来取出配置文件中的信息
1 Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(System.Web.HttpContext.Current.Request.ApplicationPath);
从配置文件中取出数据库链接字符串的技巧
标签: