How to create a DropDownList with ASP.NET MVC
Posted by: Code Climber,
on 10 Aug 2009 |
View original | Bookmarked: 0 time(s)
The DropDownList html helper differs a bit from the standard Html helper methods, and, not surprisingly, the way it works is one of the questions I get asked the most. So in this post Im going to dissect this method, and show you how to use it. Standard Html Helpers One of the cool features of ASP.NET MVC is the automatic binding of html form fields: all the Html helper methods will auto-magically take the default value of the form field directly from the ViewData or the view model object with...