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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:45:11+00:00 2026-06-02T14:45:11+00:00

My website is localized in 10 languages, using VS 2010 / vb. When I

  • 0

My website is localized in 10 languages, using VS 2010 / vb. When I click the flag first, it changes to that language. But when I click a separate language, it doesn’t switch; I have to click it another time for it to switch. Does anyone know what my problem is?

Here’s my code behind for my homepage.master.vb:

 Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports Udev.MasterPageWithLocalization.Classes
Partial Public Class Homepage
Inherits System.Web.UI.MasterPage
Protected Sub Page_Load(sender As Object, e As EventArgs)
End Sub

Protected Sub RequestLanguageChange_Click(sender As Object, e As EventArgs)
    Dim senderLink As LinkButton = TryCast(sender, LinkButton)

    'store requested language as new culture in the session
    Session(Udev.MasterPageWithLocalization.Classes.Global.SESSION_KEY_CULTURE) =
    senderLink.CommandArgument()

    'reload last requested page with new culture
    Server.Transfer(Request.Path)
End Sub
End Class

Here is my code behind for my default.aspx.vb:

Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports Udev.MasterPageWithLocalization.Classes

Partial Public Class _Default
    Inherits BasePage
    Protected Sub Page_Load(sender As Object, e As EventArgs)
    End Sub
End Class

Any suggestions or guidance would be greatly appreciated!

  • 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-02T14:45:12+00:00Added an answer on June 2, 2026 at 2:45 pm

    This probably have something to do with the life cycle of ASP.net. When you click on your linkbutton, the page reload before executing the RequestLanguageChange_Click event. This means your page is loaded before the session variable is changed. However, since you do a server.transfer, it shouldn’t be a problem (except for the double refresh). I don’t a lot about lifecycle but you should check it out, maybe it’ll help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

for a localized website I want to create different language files. But my main
What's the best way to make a website localized to multi languages? I'm working
Situation is simple. I'm starting to develop a website that should be localized based
Basically I have localized a website by using gettext(), and used the UTF-8 character
I have a website (Flash) localized into a dozen of languages and I want
I'm trying to use the ASP.NET chart controls for a website that is localised
I'm using the Spark view engine, and want to localize the website. The methods
My website is built using php files. I use trade secret algorithms in these
Our website has one section which often changes to match the user. (examples are
I have a rails app which is localized in multiple languages. Some time for

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.