Multi-language: Problem with Resources? RRS feed

  • Question

  • User111408004 posted

    I'm developing a multi-language website

    I developed a simple website with 1 page (default.aspx) and several resources-files. (default.aspx-en.resx,...). Everyhting works just fine when I change my language settings in IE and run my program. The correct resx-file is used based on my default language setting in IE.

    But now I want to change at runtime (using a menu) in default.aspx and it doesn't work! I use the following code in the "MenuItemClick":

    Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(e.Item.Value);
    Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
    TextBox1.Text =

    The correct Culture name is shown correct in TextBox1 but my labels of all my other objects (buttons,...) are not translated.


    What am I doing wrong?


    Thanks for you help.

    Tuesday, June 19, 2007 2:21 PM


  • User-503940700 posted


    Check out this article to see how to set the culture in the InitializeCulture() method in the basepage:


    Hope this helps,


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 20, 2007 1:56 AM