0

I need to create a drop down list populated with countries for the user to pick from. So far all I have come across are long html lists that slow down my editor. I'm hoping there would be a quick way to do this in MVC 3 Razor.

Any help is greatly appreciated.

2 Answers2

1

Basically the same as this answer, but you'll need the country list, probably from a resource, instead of the years.

Community
  • 1
  • 1
Timbo
  • 4,505
  • 2
  • 26
  • 29
0

It should be easy... Just like we did it in the old days :-)

Simply create a partial View with the country list as static HTML.

Roy Dictus
  • 32,551
  • 8
  • 60
  • 76