Last post Jun 20, 2011 04:27 AM by anujtripathi
Jun 20, 2011 03:33 AM|khalidelmeknesi|LINK
I am looking for some algorithm to generate some key value list of country names and culture codes, but the important thing is I would like to show the country name in the current culture of the user on the website.
Here is an example of the country names in Dutch:
Here is an example of the country names in englisch:
Jun 20, 2011 03:39 AM|anujtripathi|LINK
Check the below link
Hope this will help you
Jun 20, 2011 03:49 AM|sudeep_13|LINK
You can use the CultureInfo object. Pls refer to the links below
Jun 20, 2011 04:19 AM|khalidelmeknesi|LINK
This is not where I am looking for. If my current culture is Dutch, I would like to see the country names in the Dutch language. If my current culture is englisch, I would like to see the country names in the Englisch language. Etc etc.
The solution on page http://www.dreamincode.net/code/snippet2879.htm is only in the Englisch language.
Jun 20, 2011 04:27 AM|anujtripathi|LINK
To make it change according to the culture you need to override InitializeCulture() class.
See the simple example below
All you need to do is to set the CurrentCulture and CurrentUICulture to the desired language [which user has selected from on the drop down menu]
Make sure that you use Request.Form to get the dropwon value to avoid other problem.
Hope this will help you.