Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
You can use Request.UserLanguages(0) to get the browser language setting./Christian
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.
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
You can use Request.UserLanguages(0) to get the browser language setting.
/Christian
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
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
is working on a reply...