Let\'s say I have the following simple enum:
enum Response { Yes = 1, No = 2, Maybe = 3 }
How can I bind this enum to a DropDow
I use this for ASP.NET MVC:
Html.DropDownListFor(o => o.EnumProperty, Enum.GetValues(typeof(enumtype)).Cast().Select(x => new SelectListItem { Text = x.ToString(), Value = ((int)x).ToString() }))