Sunday, July 22, 2007

Web.Config: Read Web.Config programatically Code Listing

using System.Configuration;
System.Web.Configuration.UrlMappingsSection urlMaps = (System.Web.Configuration.UrlMappingsSection)
System.Web.Configuration.WebConfigurationManager.GetSection(“system.web/urlMappings”);
Bool urlMappingsEnabled = urlMaps.IsEnabled;

No comments:

Post a Comment