MVC 3 Razor: Country selection drop down list
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 g开发者_运维技巧reatly appreciated.
Basically the same as this answer, but you'll need the country list, probably from a resource, instead of the years.
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.
精彩评论