2
Shouts

A Method for Populating a Dropdown List in ASP.NET MVC

published 269 days, 36 minutes ago posted by http://derans.myopenid.com/http://derans.myopenid.com/ 273 days, 16 hours, 5 minutes ago
Thursday, August 30, 2012 11:15:56 AM GMT Saturday, August 25, 2012 7:47:12 PM GMT

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.

category: How To | clicked: 25 | | source: derans.blogspot.com | show counter code
tags:

No comments yet, be the first one to post comment.

To post your comment please login or signup