new { id = " dd" name = " myName" }
is not on the name attributes override, how can id coding name attributes override
@Html.DropDownListFor(x => x.Customer.CustomerBiaoshi, Html.GetEnumSelectList<TgNetJZ.CustomerBiaoshi>(), "test",new { @class = "form-control custom-select" ,@id="ddd",@name="myName"})
I write like this always shows model name Customer.CustomerBiaoshi, I want to show what I set name attributes "myName"
It should be for me that the edit page can only use dropdownlistfor to bind the drop-down box to select items, so I need to solve the name property Customer.CustomerBiaoshi override and Model corresponds to CustomerBiaoshi
or how to custom dropdownlist htmlstring on mvc core suppet set name attributes like so