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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:06:51+00:00 2026-06-03T10:06:51+00:00

I’m developing bilingual ASP.NET Application and I want to know hat is the best

  • 0

I’m developing bilingual ASP.NET Application and I want to know hat is the best way to store UICulture and Culture values all over the application?

  • Cookies.
  • Session.
  • QueryString.
  • Or something else.

Update:
I want to make the same ASPX form to be bilingual pages, what I’ve got an answers till now is to make a separate page and make it accessible by sub-domain, what I’m really doing now is using Session, but i want to now what is the best practice to user Resource file to make the page bilingual without creating another copy of it.

  • 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-06-03T10:06:53+00:00Added an answer on June 3, 2026 at 10:06 am

    As often, it depends on your particular use case.

    Most often however you’d probably want to have a different URL for each page and language in order to have it indexed properly by search engines. For example URL’s like:

    • http://en-us.example.com/index.htm
    • http://www.example.com/en-us/index.htm
    • http://www.example.com/index.htm?l=en-us

    I prefer the first 2 options.

    Optionally, you could redirect the user based on their browser language when they first arrive on your site (but please make sure that the user still can browse the other languages).


    Update: This doesn’t mean you’ll have to make as many versions of your site as you have languages.

    If you have a subdomain for each language:

    • Point each subdomain to your site
    • In the codebehind of your pages, you override the InitializeCulture method (you may use a base class for all pages in order to keep it DRY)
    • Set the appropriate culture in the overridden InitializeCulture method
    • Create your resource files
    • Use the resources in your pages – the correct translation will be displayed depending on the culture.

    If you decide not to use subdomains but include the culture name in your URL, you may use URL-rewriting to point to the same page from each URL.

    Some code to get you started:

    protected override void InitializeCulture() {
        // Identify the culture and replace the hardcoded values below
        // (Use Request.Url.xxx for example)
        Thread.CurrentThread.CurrentUICulture = new CultureInfo("en", false);
        Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false);
        base.InitializeCulture();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i want to parse a xhtml file and display in UITableView. what is the
Does anyone know how can I replace this 2 symbol below from the string
I want to construct a data frame in an Rcpp function, but when I
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.