Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Experts,

How do I know client machine cultural info in asp.net?

Bellow statement is giving me the server cultural info, But I need the client machine cultural info. Is this possible through javascript?

CultureInfo ci = System.Threading.Thread.CurrentThread.CurrentUICulture;




Thanks
Purna
Posted
Updated 9-Oct-12 0:39am
v2

in Javascript you can utilize navigator object. using this you can get
navigator.userLanguage
navigator.browserLanguage
Not sure about how you can extract culture information exactly
 
Share this answer
 
You need to set UICulture="Auto" on page or global level before using System.Threading.Thread.CurrentThread.CurrentUICulture.
 
Share this answer
 
Comments
purnananda behera 9-Oct-12 6:37am    
Hi Muhammad, It is not so helpful, because by this process we get cultural info of server machine where application hosted. But my requirement is to find cultural info from client machine(different pc from server).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900