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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:54:29+00:00 2026-05-23T17:54:29+00:00

I need to support 2 languages in my website. Which is the right way

  • 0

I need to support 2 languages in my website.
Which is the right way to set the correct language on each column header?
I don’t want to use the column index to access it. I want to loop on all the columns and for each one get the right text for it, by it’s name or other key from the cache.

Using framework 4.0, asp.net, c#.

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-23T17:54:30+00:00Added an answer on May 23, 2026 at 5:54 pm

    I meant something more like this:

            if (ctl is GridView)
            {
                GridView oGrid = (GridView)ctl;
                foreach (DataControlField oClm in oGrid.Columns)
                {
                    string str = string.Empty;
    
                    str = frm.Page.ToString().Replace("ASP.", "").Replace("_aspx", "") + "_" + ctl.ID.ToString() + "_" + oClm.HeaderText.Replace(" ", "");
                    Dr = DsGuiText.Tables[0].Select("Language = '" + sLang + "' And Key = '" + str + "'");
                    if (Dr.Length > 0)
                    {
                        oClm.HeaderText = Dr[0]["Value"].ToString();
                    }
    
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WinForms application, which I need to support in multiple languages. I
I need to support about 20 languages (some are right to left). The database
Hello I need to have multiple language support of my django admin application.I can
I really need an easy to use build tool which supports multiple languages with
I realize most languages support multiple languages, but every language I've seen has always
We've got an interesting requirement that we'll want to support multiple languages at runtime
I'm working on a flex 3 application which will initially support only one language
We are planning on adding multi-language support for our ASP.NET Website. I understand the
I have a web application which needs to support multiple languages. We currently have
I have to develop a pretty simple php website so I don't need framework.

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.