Can´t figure out why can´t set a default value here to be displayed:
@Html.DropDownListFor(m => m.storeLocations, new SelectList(Model.storeLocations, "id",
"caminhoRepositorio", Model.idArmazenamento), new { @class = "largeField" })
The dropdown had the folowing configuration:
<select class="largeField" id="storeLocations" name="storeLocations">
<option value="2">c:/item1</option>
<option value="3">d:/item2</option>
</select>
as a object "Model.idArmazenamento" I´ve already tried with int and string ("2" ou 2). Can´t get a default value selected