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"....

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 540 | Hits: 38

Similar Posts

  • 12 ASP.NET MVC Best Practices more
  • My History of Visual Studio (Part 7) more
  • The Telerik CAB Enabling Kit and SCSF - Tutorial 5: The RadPanelBar UIExtensionSite more
  • Client Configuration in WCF 4.0 more
  • Open SQL Port for specific IP by ASP.NET Website more
  • Update to Logging in to DotNetNuke from a Silverlight Application with RIA Authentication more
  • Using the ObjectContainer in disconnected scenarios Part 2 more
  • SQL 2008 CLR Triggers, use a .NET class library in SQL using WPF more
  • WSE, DIME; WCF, MTOM; OH My! more
  • A (less) simple include for ASP.NET more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD