Quantcast
Channel: paulthecyclist » Templating
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Create a dropdown list from an Enum in Asp.Net MVC

A common situation you can find in MVC, is to have an Enum in your model and want that rendered as a dropdown list in the browser. If you are lucky enough to be using MVC5.1 (or higher), I’d recommend...

View Article



Image may be NSFW.
Clik here to view.

Dropdown list with MVC5.1 – now out of the box!

Last year I made this post showing a clean way to render a dropdown list in MVC. Recently MS released MVC5.1 (prerelase) and excitingly it now has Enum support. Jon Galloway has written an excellent...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images