Friday, May 30, 2008

WebConfig 配置文件读取代码

Configuration systemConfig =
WebConfigurationManager.OpenWebConfiguration("~");

// Get the <system.web> group.
SystemWebSectionGroup systemWebConfig = systemConfig.GetSectionGroup("system.web") as SystemWebSectionGroup;

No comments: