I am trying to define custom settings in my web.config file and I’m pretty sure I have most of it correct and it all makes sense, except the one crucial part where I don’t understand what I’m supposed to use. The tutorial I used to create my SectionHandler, didn’t go into an explanation of it and MSDN isn’t really helping me fully understand it either.
This comes from the tutorial I used:
<section name="BlogSettings" type="Fully.Qualified.TypeName.BlogSettings,
AssemblyName" />
This is from MSDN:
type="System.Configuration.SingleTagSectionHandler"
Yes, I am very new to ASP.NET and I’m trying to learn. I would be happy with any good references that explain what’s going on here.
Description
The type Attribute of the Section in web.config is the “path” to the corresponding
ConfigurationSectionclass you have implemented. The ConfigurationSection class is the class that defines the section and the possible configuration content.The
ConfigurationSectionis the base class of all configuration sections.This belongs to .NET in general, not only web.config.
Check out Unraveling the Mysteries of .NET 2.0 Configuration
More Information