i want to set the label value for a dropdownlist(not the default value, the label value) and i think im doing something wrong
@Html.DropDownList("cboCategoria", new SelectList(Model, "ID", "Nome"), new { @id = "cboCategoria", @label = "Categoria-pai: " })
You can do it a few ways, The label is seperate from the creation of the actual
<select>:OR
OR
EDIT: I did want to note, that if you use the last method, you will want a [Display] attribute on your Model’s property.