Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kim Grandgagnage 63 posts 87 karma points
    Jun 27, 2012 @ 14:27
    Kim Grandgagnage
    0

    How to get the client's OS language?

    Hi,

    I'm bulding an ASP.NET language detection page in VB.NET to use on my website. How can I detect the language of the OS installed on the visitor's machine?

    I have tried with currentculture, but that gives me the language of the server's OS...

    Thanks in advance!

    grts,

    Kim

  • Christian Bech 20 posts 51 karma points
    Jun 27, 2012 @ 14:35
    Christian Bech
    0

    You can use Request.UserLanguages(0) to get the browser language setting.

    /Christian 

  • Kim Grandgagnage 63 posts 87 karma points
    Jun 27, 2012 @ 14:41
    Kim Grandgagnage
    0

    Hi Christian,

    Is there also a way to detect the OS language, this can be a different language than the browser's language...

    Thanks in advance.

    grts,

    Kim

     

  • Christian Bech 20 posts 51 karma points
    Jun 27, 2012 @ 14:58
    Christian Bech
    0

    As far as I know the ASP.Net has no access to the client maschine OS settings but maybe there is a way that i'm not aware of.
    /Christian 

Please Sign in or register to post replies

Write your reply to:

Draft