The configuration section handler is brought into the picture via an XML section that is
added to the top of the web.config file underneath the root-level configuration XML element.
configSections is a content-wrapping element that signifies we want to add additional content
to the existing configuration sections, as shown here:
type="ControlsBook2Lib.CH12.LiveSearchControls.LiveSearchConfigSectionHandler,
ControlsBook2Lib.CH12.LiveSearchControls,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=9d0e1a77378e3a88" />
An interesting read is searching for configSections in the machine.config file that comes
with the .NET Framework installation. You can see all of the configuration sections (such as for
session state, authorization, and so on) familiar to web developers in this section of the
machine.config file.
sectionGroup is used to group configuration section entries to prevent naming conflicts. If you
choose an existing sectionGroup name that is already used, the new, custom configSections entry
is nested under that configuration element. In our case, we choose to put the Live Search web
service data under the system.web elements in the web.
Pages:
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774