Where does Thread.CurrentCulture gets it’s data from? Client (browser) or server.
And another question, is this the right way to find out the culture of the user?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Thread.CurrentCulture gets the info for the executing thread. ASP.NET code is running on the server; hence, this will give you the current culture of the server thread.
To find the client accepted languages, use
HttpRequest.UserLanguagesinstead.