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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:26:55+00:00 2026-05-26T06:26:55+00:00

I developed a web application and it is a dynamic site. Can I place

  • 0

I developed a web application and it is a dynamic site. Can I place a multilingual option for my site?

If yes, are there any plugins for that? How can I go further to develop a multilingual application?

  • 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-26T06:26:55+00:00Added an answer on May 26, 2026 at 6:26 am

    We have the DropdownList control. On its SelectedIndexChanged event, it postbacks and we then change the site culture, and it then loads the respective resource files…

    DropDownList ASP.NET Code

    <asp:DropDownList ID="ddlLanguage" runat="server" CssClass="select-language" AutoPostBack="true">
        <asp:ListItem Value="en-US" Text="English" title="/images/Flag_USA.gif"></asp:ListItem>
        <asp:ListItem Value="it-IT" Text="Italiano" title="/images/Flag_Italian.gif"></asp:ListItem>
        <asp:ListItem Value="fr-FR" Text="Française" title="/images/Flag_French.gif"></asp:ListItem>
    </asp:DropDownList>
    

    Common class inherited by all of the web pages

    using System;
    using System.Web;
    using System.Threading;
    using System.Globalization;
    
    public class languagebase : System.Web.UI.Page
    {
        protected override void InitializeCulture()
        {
            try
            {
                string LanguageCode = Request["ctl00$ucMenu$ddlLanguage"]; // Language Drop Down Control in Front End
                if (!LanguageCode.IsNullOrEmpty())
                {
                    setCulture(LanguageCode);  // Set Culture language from drop down
                    Request.Cookies["LanguageCode"].Value = LanguageCode; // Update REQUEST Cookie language from drop down
                    SetCookies(LanguageCode); // Set Cookie language from drop down
                }
            }
            catch(Exception ex)
            {
                setCulture("en-US"); // Set default language
                Request.Cookies["LanguageCode"].Value = "en-US"; // Update REQUEST Cookie language to default
                SetCookies("en-US"); // Set default language
            }
            base.InitializeCulture();
        }
    
        private static void setCulture(string LanguageValue)
        {
           Thread.CurrentThread.CurrentUICulture = new CultureInfo(LanguageValue);
           Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(LanguageValue);
        }
    
        public void SetCookies(string strLanguage)
        {
            System.Web.HttpContext.Current.Response.Cookies["LanguageCode"].Value = strLanguage;
            System.Web.HttpContext.Current.Response.Cookies["LanguageCode"].Expires = DateTime.Now.AddDays(15);
        }
    }
    

    Extension Method (just for sake of information)

    public static Boolean IsNullOrEmpty(this String original)
    {
        return string.IsNullOrEmpty(original);
    }
    

    Please review these link before starting to implement:

    1. Globalization Architecture
    2. [jQuery globalization tricks used in ASP.NET MVC] which can be helpful in ASP.NET also.
    3. My question here defines the way to implement multi-language code
    4. How to create and use Global language resources in ASP.NET

    These make all of your pages to use inherit from the languagebase class as below:

    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    public partial class Default : languagebase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a web application and various clients can store records to that
I've never developed a web application that uses distributed memory. Is it common practice
I've developed a web application that worked fine in JBoss 4. Now, I need
I have a web application developed with ASP.net and C# that is running on
I have developed a web application that uses the jQuery DateTimePicker by Trent Richardson
Is there any tool available for Flex applications that acts similar to Web Developer
As most of .net web application developers know, dynamic scripts can be registered like
I have a system that we have recently developed - a web application over
I have developed web application which uses JasperReports for reporting purpose. In that I
I developed a dynamic web project in Eclipse. I can access the app through

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.