开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜