I have a Drop Down List in my MVC application, which is populated from my "PropertyList" model.
I have set the propertyList variable as follows to obtain the details needed for each option as follows;
var propertyList = new SelectList(Model.propertyList, "fullPropertyDetail", "FullAddress");
@Html.DropDownList("addresslist", (SelectList)propertyList, "-- Please select an address from the list below --", new { @id = "valid-addresslist" })
This populates the list as expected and the default option reads "-- Please select an address from the list --", however the value for that option is set as "".
Is there any way I can set the default option value as "none" as another system looks for this value if it is selected.