随笔分类 -  ASP.NET

摘要:Asp.NET 操作配置文件 Asp.NET 操作配置文件 1. Web 项目 1.1 系统自带 1)打开配置文件(Web.config) Configuration config = WebConfigurationManager.OpenWebConfiguration("~"); 2)获取相应的appSettings配置节 AppSettingsSection appSection = (AppSettingsSection)config.GetSection("appSettings"); 3)增加相应的appSettings配置节 4)保存配置 阅读全文
posted @ 2008-03-03 14:02 靓点博客 阅读(215) 评论(0) 推荐(0)