Ok, now you're just changing your question. If you want to add your own
sections (but still keep everything in one web.config file) you just have to
declare those sections before you use them. Like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="data"
type="System.Configuration.NameValueFileSectionHan dler, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<!-- Your regular web.config stuff -->
<data>
<add key="ConnectionString" value="Provider=SQLOLEDB; Data
Source=SqlServer;" />
</data>
</configuration>
and retrieve it like this:
((NameValueCollection)ConfigurationSettings.GetCon fig("data"))["ConnectionSt
ring"]
For some reason type="System.Configuration.NameValueFileSectionHan dler,
System" didn't work, I had to add version, culture and public key token to
the section definition. Also note that there are other section handlers too.
Jerry
"Shrinivas Joshi" <sj**********@yahoo.com> wrote in message
news:OP**************@TK2MSFTNGP09.phx.gbl...
Thanks for your reply.
But I was expected on sectionGroup not on appSettings
**********
<configsections>
<sectionGroup name="Group name">
<section name="Section name"> </section>
</sectiongroup>
</configsections>
*********
Thanks In Advance,
Shrinivas Joshi
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!