随笔分类 - 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)保存配置
阅读全文

浙公网安备 33010602011771号