Html attributes dropdownlist mvc

1... 2
3 @Html.LabelFor(x => Model.SelectedCountryIso3, htmlAttributes: new { @class = "control-label col-md-2" }) 4
5 @Html.DropDownListFor(x => Model.SelectedCountryIso3, new SelectList(Model.Countries, "Value", "Text"), htmlAttributes: new { @class = "form-control", id = "Country"}) 6 @Html.ValidationMessageFor(x => x.SelectedCountryIso3, "", new { @class = "text-danger" }) 7
8
9...

Video liên quan

Chủ đề