【发布时间】:2020-12-14 20:03:48
【问题描述】:
我的数据库中有这样一列;
public int marker_type { 获取;放; }
我的问题是如果选择了苹果 1,如果选择了 0,我如何使用 dropdownlistfor 将此列显示为橙色。我尝试使用“枚举”但失败了。
在此图中,您可以看到列所在的数据库以及“枚举”文件夹的位置。
【问题讨论】:
-
这能回答你的问题吗? MVC DropDownListFor
标签: asp.net-mvc database model-view-controller integer boolean