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

  • SEARCH
  • Home
  • 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 6865695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:05:10+00:00 2026-05-27T03:05:10+00:00

Sometimes I need to set some string values from code, for example: Page.Title =

  • 0

Sometimes I need to set some string values from code, for example:

Page.Title = "This is a test page.";

or

lblSupportInfo.Text = "Please contact xxx-xxx-xxxx for support.";

These are just examples of data that can change anytime. Is it better stored in the settings file in application scope? What are other options.

It would be better to be able to change this by updating a configuration file rather than a code release (Resources).

How do other people handle this? If there are too many of them, the web.config can be very long.

  • 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-27T03:05:11+00:00Added an answer on May 27, 2026 at 3:05 am

    i did this in asp.net 2.0, so things might have changed since then, but the best way to do this is to store it in the database, and then use the asp.net resource provider to load the values.

    So to your application it would look like its loading from a resource file, but it would from the database, and you get all the nice compile time benefits and built in asp.net tooling for resources and you can change your locale if you need to.

    this article was the inspiration for the solution http://msdn.microsoft.com/en-us/library/aa905797.aspx

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

Sidebar

Related Questions

Sometimes I have a batch file like this: Action.bat : Set PATH=%PATH%;C:\Some\Folder\I\Need foo.exe Bar1
Sometimes I need to quickly extract some arbitrary data from XML files to put
Here I need to cache some entites, for example, a Page Tree in a
I sometimes need to look for information for a special portion of code. When
I sometimes need to run gacutil.exe or installutil.exe, etc. from the command line. Is
Here at work, we often need to find a string from the list of
I sometimes need to run basic updates on a join. For example: UPDATE t1
I have a string to compare with another set of string and need to
Sometimes I have classes which need to get some information for construction. I am
I have a set of data which in some occasion I need to sort

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.