Last post May 09, 2007 02:05 PM by manasbbsr
May 03, 2007 10:57 AM|sujithuk|LINK
i have created a web site which was working perfectly,
now the problem is my manager ask me to change the content of the web site when selecting language type !
what is the technique behind this ?
i want to change this web site content in to "Russian","Dutch" French" depends on user request !
how to achieve this tasks ?
May 09, 2007 04:35 AM|Kevin Yu - MSFT|LINK
In an ASP.NET Web page, you can set to two culture values, the Culture and UICulture properties. The Culture value determines the results of culture-dependent functions, such as the date, number, and currency formatting, and so on. The UICulture value determines
which resources are loaded for the page.
I strongly suggest you read the following article to start learning globalization on ASP.NET pages.
HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!
May 09, 2007 02:05 PM|manasbbsr|LINK
As per my understanding you need the culture of your client browser.
You will get that by Request.UserLanguages, then set the Culture of current thread ( your application ) like this
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
If your website contain some UTF-8 charaters dont forget to make Response.Charset="UTF-8";
This should resolve your problem.