8
Shouts

ASP.NET MVC - Creating a DropDownList helper for enums - Stuart Leeks

published 1094 days, 19 hours, 35 minutes ago posted by iftekharahmedamitiftekharahmedamit 1095 days, 20 hours, 4 minutes ago
Saturday, May 22, 2010 1:07:01 PM GMT Friday, May 21, 2010 12:37:17 PM GMT

ASP.NET MVC - Creating a DropDownList helper for enums Do the types you work with in your ASP.NET MVC models ever have enums? Mine do from time to time and I’ve found myself needing to render a dropdown list to allow the user to select the enum value. For the purposes of this post, I will be working with a Person class and a Color enum (I’ll direct you to some posts by my colleagues to help you decide whether you think Color makes a good enum: here, here and here), but we’ll go with it here :-)public ...

category: Web Dev | clicked: 2 | | source: blogs.msdn.com | show counter code
tags: ASP.NET MVC