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 963475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:40:34+00:00 2026-05-16T01:40:34+00:00

is it better to create one resource for every asp.net page application. or to

  • 0

is it better to create one resource for every asp.net page application. or to create a global resource for all pages?
my application has about 100 pages and 200 usercontrols.
if i want to create global resource can how can i use this Feature of visual studio that able us to generate resource file automatically from every page with this way :

From Microsoft :

1)Open the page for which you want to
create a resource file.

2)Switch to Design View.

3)In the Tools menu, click Generate
Local Resource.

thanks for attentions 🙂 .
Edition :
Does Sharepoint has just one resource file?!

  • 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-16T01:40:35+00:00Added an answer on May 16, 2026 at 1:40 am

    I see most applications split between the 2. The things that come back on most pages like Ok, Cancel, Address, Firstname, … go in the global one. Specific terms go in the local resources.

    In my former application however we deciced to not put it in resources but in the database. We made custom controls which had a translationkey property which mapped to a unique key in the database. The translations were put in the Cache object to keep it as close as possible in reach of the UI parts that needed it. It worked great for us and we needed less deployments since translations could be directly be enhanced in the production database when needed (luckily not that often).

    Update due to comment:

    public class TranslationLabel : Label, ITranslation
    {
        public string TranslationKey { get; set; }
    }
    

    In a custom basePage class we looped over the controls collection and took out the ones that implemented the ITranslation interface. Then grab the TranslationKey and look it up in the dictionary retrieved from Cache.

    Usage:

    <cl:TranslationLabel runat="server" TranslationKey="WarningMessage" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Curious if anyone has opinions on which method would be better suited for asp.net
While implementing transaction scope in mvc application. is it better to create a transaction
My specific question is about ASP.NET MVC but I am sure that the answers
I have a this asp.net page which upon first time load: 1: Make a
I am working on a runtime composite resource library for ASP.NET WebForms/MVC. I support
Ok, so is it better to create my own components (Either inherit them from
I am starting to write some javascript for my site to create a better
When creating a 3D array in C#, which is a better way to create
Is it considered better practice and/or more efficient to create a 'reset' function for
Is it better(what is the best practice) to create methods with a long list

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.