Skip to main content

Posts

Showing posts from February, 2013

ASP.NET Working with Web Configuration Files

Our sites are configured based on hierarchy of XML configuration files. Machine.config is top level configuration file located in Config: %WINDIR%\Microsoft.NET\Framework\ <version> \Config\machine.config These settings are framework level and common to all Windows, Console, Class Library, and Web application. Some of them could be overridden in Web.config while others are protected. Next in hierarchy is Root.config. It’s located in Config: %WINDIR%\Microsoft.NET\Framework\ <version> \Config\web.config It contains default web server settings. Optionally one can add at root of all websites a web.config to provide general settings related to all sites. Optionally to provide more control on settings one can add web.config in each web site and for each folder in that web site. Processing the Configuration files:                       ...

The Amazing LinqToXML with C#

XAttribute , XComment , XDeclaration , XDocument , XElement , XName / XNamespace Creating XML :             XElement inventory =                                     new XElement ( "Inventory",                                                 new Xelement ( "Car", new XAttribute("ID", "1"),                                      ...