can anyone tell me how to fill a aspxcombobox with a list of countries in swedish?
I have manage to do this with an english list of countries.
my code:
public static List<string> getCountryList()
{
List<string> cultureList = new List<string>();
CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
foreach (CultureInfo culture in cultures)
{
if (culture.LCID != 127 && (culture.CultureTypes & CultureTypes.NeutralCultures) != CultureTypes.NeutralCultures)
{
RegionInfo region = new RegionInfo(culture.LCID);
if (!(cultureList.Contains(region.EnglishName)))
{
cultureList.Add(region.EnglishName);
}
}
}
cultureList.Sort();
return cultureList;
}
In the config file I have set the following line:
<globalization uiCulture="sv" culture="sv-SE" />
thank you.