asp.net mvc 3 - MVC3 EditorForModel Dropdown -


i using @html.editorformodel() in several places, , wondering if there simple attribute specify should dropdownlist in view model? approximate example of looking be...

public class myviewmodel {     [dropdown("red", "blue", "green")]     public string lasers { get; set; } } 

i know there have been similar questions asked, , i know can make custom template implement this... wondering if seemingly simple functionality existed, or if there sort of nuget package added functionality. seems basic not exist somewhere, , might have make nuget package myself if there isn't already.

thanks in advance everybody!

follow link

http://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-preview-1-released.aspx

search "countrydropdown" on page answer


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -