Answers for "list of countries in .net mvc 5"

C#
0

list of countries in .net mvc 5

ViewBag.country = from p in CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures).OrderBy(c=>c.Name)
                          select new SelectListItem
                          {
                              Text = p.EnglishName,
                              Value = p.DisplayName
                          };
Posted by: Guest on May-28-2021

C# Answers by Framework

Browse Popular Code Answers by Language