Asp.net2.0里访问Web.config的Section的示例

发表时间:2007-4-26 11:28:00
System.Configuration.Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
            System.Web.Configuration.PagesSection pagesSection = config.GetSection("system.web/pages") as System.Web.Configuration.PagesSection;
            System.Web.HttpContext.Current.Response.Write(pagesSection.Theme);
原文地址:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/1446291.html