I’m asked quite a bit how to bind a dropdown list in ASP.NET MVC. So there are about 10,000 ways to do it, but here’s one.
First, we’ll create a simple interface to return a list of SelectListItem so we can use the built-in DropDownListFor() later on.
No comments yet, be the first one to post comment.