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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:47:08+00:00 2026-05-12T05:47:08+00:00

I am trying to put all of my strings into the resource file, something

  • 0

I am trying to put all of my strings into the resource file, something I do for all my Windows and Web Forms applications.

Works great when it comes to changes string values for labels and/or localizing the application.

I tried adding the string values to my Web MVC project, but cannot seem to access the Resource file from the inline code in the view.

Is this possible? Is there a better way?

  • 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-12T05:47:08+00:00Added an answer on May 12, 2026 at 5:47 am

    Where is your resource file? There are a couple things you have to do.

    1. You have to set the custom tool on the resource file to be “PublicResXFileCodeGenerator“, rather than just “ResXFileCodeGenerator“. This makes the resource class that it generates a public class, rather than an internal class.

    2. Make sure that you are importing the namespace into your View. For example, if you’re using the Properties folder to store your resx files, do

    Even then, you can’t reference it by “Properties.Resource1.MyString“… you have to either use just “Resource1.MyString“, or “MvcApplication1.Properties.Resource1.MyString“.

    Hope that helps.

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

Sidebar

Related Questions

I'm trying to put a list of URLs into a csv file that I'm
I'm trying to query an MySql table, put all results into a combobox. So
I am trying to make a movie with openCV. I can put all the
I am trying to pull registry info from many servers and put them all
I've been at this all week, trying to put the finishing touches on my
I'm trying put an if statement directly into a select field in rails, with
I'm trying to put a large table in a pdf file which will be
I'm trying to put some custom list adapters into their own classes to make
I'm trying to put an mysql query result into an string I tried to
I'm trying to get fixed sized floats and ints across all windows computers. As

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.