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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:57:57+00:00 2026-05-27T08:57:57+00:00

I am implementing as asp.net website to act as a multi language website template

  • 0

I am implementing as asp.net website to act as a multi language website template that I am going to use in future developments. I am using a query string to indicate what language to display and by default the url looks like this: http://www.site.com/default.aspx?lnag=en where English is the default language.

In my master page I have an html menu that looks like this:

<ul>
            <li><a href="../../Default.aspx">Home</a></li>
            <li><a href="../../About.aspx">About</a></li>  
        </ul>

Notice that when the user clicks on the “About” link, it will, obviously, loses the query string and it will transfer the user to http://www.site.com/About.aspx .

Now, I want the query string (lnag) to stay there on ALL page links/URLs and redirects without having to manually adding the query string for each and every link on my site. I already have a page base class but I am not sure how/where I am suppose to capture/insert the query string for the requested/responded page.

Thanks in advance.

  • 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-27T08:57:58+00:00Added an answer on May 27, 2026 at 8:57 am

    use following code

    var lang = 'en';
    $('a').attr('href', function() { return this+ '?'+ lang });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing a cache in a class library that i'm using in an asp.net
I'm working on an ASP.NET website that needs to be internationalized. I'm using .resx
I am implementing a new ASP.NET MVC 3 application that will use a form
I am implementing browser turn-based game, using javascript and asp.net MVC, probably going to
I am implementing Javascript Validation on an ASP.Net page that is inside a Master
I'm implementing a REST API using ASP.NET MVC, and a little stumbling block has
I am implementing an multilingual web site using ASP.Net. The languages are English,French and
I'm implementing a solution in ASP.NET MVC that later can be applied to couple
I am implementing an eCommerce application using ASP.Net. I would like to know if
I'm implementing StructureMap in a multi-tenant ASP.NET MVC application to inject instances of my

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.