Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3324340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:24:35+00:00 2026-05-17T23:24:35+00:00

I have several key value pairs or mapping value, like Eg: Liquid Manufacturing ->

  • 0

I have several key value pairs or mapping value, like
Eg: Liquid Manufacturing -> Processing+Batching+Filling+Sealing

There are several such key value pairs. These values might change frequently.
Whats the best practice? Can I save them to XML based config files? or database?
Can I have them in a config file and read it into a dictionary and use it in my application?

Thank you for your inputs.

“When will they change? Can the user change them or is it changed when the application is installed? Is the setting per user or per application? Is the setting valid only for one machine or does the same setting apply to clients on several machines?”

User cannot change them. Setting applies to entire application, all machines.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:24:36+00:00Added an answer on May 17, 2026 at 11:24 pm

    I prefer to use resource files for these kinds of things. They are still text-based files that can be changed on-the-fly without impacting the site in a global sense. Sometimes I load them into variables at the Application level in the global.asax, other times I get them as needed.

    http://kumarnitesh.wordpress.com/2008/04/16/how-to-use-resource-file-in-c/
    http://msdn.microsoft.com/en-us/library/ekyft91f(v=VS.100).aspx
    http://msdn.microsoft.com/en-us/library/1ztca10y(v=VS.85).aspx

    EDIT: A reason I choose not to put these sorts of things in the web.config is that the web.config can grow large pretty quickly in an application of any size. With resource files, the settings can be split apart into groupings of your choosing so the updating of one particular batch of settings can’t accidentally overwrite or harm any settings for the other areas. I still use web.config for global application settings, but for other settings that might be specific to a page or particular application piece, I keep those sequestered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(Using Oracle) I have a table with key/value pairs like this: create table MESSAGE_INDEX
I have a big dictionary object that has several key value pairs (about 16),
I have an array of objects with several key value pairs, and I need
Suppose that I have a vector of key-value pairs that I want to put
I have a list that contains several tuples, like: [('a_key', 'a value'), ('another_key', 'another
I have a hash which has in excess of a thousand key/value pairs. I
Let's say I have a JavaScript object that is made up of several key/value
I'd like to use a database to store i18n key/value pairs so we can
If you are using the Cassandra distributed key-value store, you will have several Cassandra
In Textmate I have several snippets assigned to specific key equivalents. So command +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.