我想设置下拉列表的标签值(不是默认值,标签值),我认为我做错了什么
@Html.DropDownList("cboCategoria", new SelectList(Model, "ID", "Nome"), new { @id = "cboCategoria", @label = "Categoria-pai: " })
html razor
html ×1
razor ×1