To pre-select a value from the drop-down list, set the appropriate property for this value in the action of your controller:
model.Record.Customer.Country = "FR";
, , SelectList, . , :
@Html.DropDownListFor(
x => x.Record.Customer.Country,
new SelectList(Model.ListCountry, "Code", "ValueFR"),
new { id = "lbCountry" }
)
Code ValueFR . , model.Record.Customer.Country Code, , .
SelectList, 4 th:
@Html.DropDownListFor(
x => x.Record.Customer.Country,
new SelectList(Model.ListCountry, "Code", "ValueFR", "FR"),
new { id = "lbCountry" }
)