Tag: asp.net mvc uihint

ASP.NET MVC使用UIHint属性生成DropDownList

我想知道如何使用UIHint属性生成DropDownList。 我已经定制了一些预定义的属性,但我不知道如何继续生成DropDownLists。 以下是我对最后一个的处理方式,我希望以类似的方式使用它: public class CartProduct { [Required] [UIHint(“Spinner”)] public int? Quantity { get; set; } [Required] [UIHint(“MultilineText”)] public string Description { get; set; } }