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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:44:55+00:00 2026-05-17T21:44:55+00:00

I know I’m doing something fundamentally wrong, but I can’t quite figure it out…

  • 0

I know I’m doing something fundamentally wrong, but I can’t quite figure it out…

I have 2 resource files in my App_GlobalResources folder: Global.resx and Global.fr-CA.resx.

I have the following label on my webform:

<asp:Label ID="Label1" runat="server" Text="<%$ Resources:Global, Test %>" />

When I run the form, it displays the value correctly from Global.resx. Now, in code-behind, I want to manually change the culture to pull from my fr-CA resx file:

Page.UICulture = "fr";
Page.Culture = "fr-CA";

However, when I re-run the app it doesn’t pull the value from Global.fr-CA.resx – it still pulls from Global.resx. What am I doing wrong?

Thanks!!

  • 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-17T21:44:55+00:00Added an answer on May 17, 2026 at 9:44 pm

    You should override the InitializeCulture() method of your page class and set both Page.Culture and Page.UICulture to the specific culture fr-CA:

    protected override void InitializeCulture()
    {
        base.InitializeCulture();
        Page.Culture = Page.UICulture = "fr-CA";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this should be simple but can't figure it out. Here's the code.
I know I'm messing up the syntax somewhere but I can't figure out where.
Know this might be rather basic, but I been trying to figure out how
I know that I can do something like $int = (int)99; //(int) has a
I know, I would have thought the answer was obviously no as well, but
I know that usually you want to strip these out, but I need the
I know this is a stupid question, but I can't find the answer anywhere.
I know similar questions have been posted before, but I have specific requirements that
I know I can remove the last element from a set: s.Remove(s.MaximumElement) But if
I know, I know, IE6 is the devil but I have no choice but

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.