Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Group in appSettings

Posted on 2010-09-22
Medium Priority
Last Modified: 2012-05-10

I have some keys in my appSettings. No problem here. Now I want to add some more keys in the appSettings but they should belong to a group so that I can loop through the appsettings but select only that keys that belong to my group.
Example below.

How can I accomplish this and how to retrieve the values?


    <!-- The host for sending emails -->
    <add key="smtpServer" value="mozart"/>
    <add key="smtpUser" value="" />
    <add key="smtpPassword" value="" />

			<add key="Mnemonics1" value="some value"/>
			<add key="Mnemonics2" value="some value"/>
			<add key="Mnemonics3" value="some value"/>
			<add key="Mnemonics4" value="some value"/>

Open in new window

Question by:Pit76
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 33735037
I guess you mean the last post in this topic :s
Can you explain that in a simple way? Looks kinda complicated and my exprience is novice level.


Accepted Solution

roxviper earned 1000 total points
ID: 33735187

Here is a more detailed tutorial

Assisted Solution

illusio earned 1000 total points
ID: 33735905
Normally you don't do it that way.
You create a custom configurationsection - explaining here is a bit long so I did a quick google:

There are some tricks you can do with the appSettings but none very advisable.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question