G
Guest
I am trying to implement a configuration section in web.config and was
wondering if I could do it without writing a handeler. I tried in the
<configSections>.
<sectionGroup name="Domains" >
<section name="Domain"
type="System.Configuration.NameValueFileSectionHandler, System,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
and the section
<Domains>
<Domain>
<add key="DomainCD1" value="CD" />
<add key="DomainCD2" value="Extenal" />
</Domain>
<Domain>
<add key="DomainCD1" value="CD2" />
<add key="DomainCD2" value="Extenal2" />
</Domain>
</Domains>
and tried to read it with
Dim CDDomains As ConfigurationSectionGroup =
rootWebConfig1.GetSectionGroup("Domains")
That line worked but I think I am way off on this I could not read anymore
of the section.
Thank you for your help
wondering if I could do it without writing a handeler. I tried in the
<configSections>.
<sectionGroup name="Domains" >
<section name="Domain"
type="System.Configuration.NameValueFileSectionHandler, System,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
and the section
<Domains>
<Domain>
<add key="DomainCD1" value="CD" />
<add key="DomainCD2" value="Extenal" />
</Domain>
<Domain>
<add key="DomainCD1" value="CD2" />
<add key="DomainCD2" value="Extenal2" />
</Domain>
</Domains>
and tried to read it with
Dim CDDomains As ConfigurationSectionGroup =
rootWebConfig1.GetSectionGroup("Domains")
That line worked but I think I am way off on this I could not read anymore
of the section.
Thank you for your help