A System.Configuration Object Represents a Merged Configuration View
Posted by: K. Scott Allen,
on 02 Jul 2007 |
View original | Bookmarked: 0 time(s)
Look! Actual ASP.NET content is back!
The documentation for WebConfigurationManager.OpenWebConfiguration says:
"Opens the Web-application configuration file as a Configuration object using the specified virtual path to allow read or write operations."
This might lead you to think you'll only find stuff from a single web.config file in the returned Configuration object - but this isn't true. The following code will return the extensions and paths mapped to the web forms PageHandlerFactory for "MyWebSite"....