yes.. I just found out that's one way of doing it... but I checked on a
sample project by ASP.NET Community Stater kit and they config their
application like this..
<configuration>
<configSections>
<sectionGroup name="communityStarterKit">
<section name="Isp"
type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.Starter
Kit.Communities" />
<section name="pagePaths"
type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.Starter
Kit.Communities" />
<section name="database"
type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.Starter
Kit.Communities" />
<section name="services"
type="ASPNET.StarterKit.Communities.CommunitiesSectionHandler,ASPNET.Starter
Kit.Communities" />
</sectionGroup>
</configSections>
<communityStarterKit>
<Isp>
<add key="IspUsername" value="admin" />
<add key="IspPassword" value="a1854928" />
</Isp>
<pagePaths>
<add key="basePage" value="/communityDefault.aspx" />
<add key="baseService" value="/communityService.asmx" />
</pagePaths>
<database>
<add key="connectionString"
value="server=localhost;uid=sa;pwd=secret;database=communityStarterKitNEW"
/>
</database>
<services>
<add key="enableServiceTimer" value="true" />
</services>
</communityStarterKit>
<system.web>
<compilation debug="false" />
.....
I wonder how they come up with that. And notice that they have
<configSections> section above at the start of it. I can't find any info
about that anywhere.
Thanks.
-------------------------------------------------------------------------- --
---- --------------------------------------------------------------------- --
---------
Ken Cox said:
You've got to use the correct keywords and syntax. You can't make up your
own hierarchy like that. You'll want something like this:
<appSettings>
<add key="Application1" value="MyApplication1" />
<add key="Setting1" value="MySetting" />
</appSettings>
See the hierarchy here:
http://msdn.microsoft.com/library/d...ref/html/gngrfconfigurationsectionsschema.asp
---- ---------------------------------------------------------------------
--