I have the following code in my view:
@using (Html.BeginForm("DataAniv", "Mailing", FormMethod.Post))
{
<div class="form-group">
<label for="sel1">Selecione o mês:</label>
<select class="form-control" id="sel1">
<option value="Janeiro">Janeiro</option>
<option value="Fevereiro">Fevereiro</option>
<option value="Março">Março</option>
<option value="Abril">Abril</option>
<option value="Maio">Maio</option>
<option value="Junho">Junho</option>
<option value="Julho">Julho</option>
<option value="Agosto">Agosto</option>
<option value="Setembro">Setembro</option>
<option value="Outubro">Outubro</option>
<option value="Novembro">Novembro</option>
<option value="Dezembro">Dezembro</option>
</select>
</div>
<input class="btn btn-primary" type="submit" value="Gerar">
}
The idea is that once the user makes a selection in this list, the "value" is sent to the controller that will execute a logic. However, it does not matter which way I try, the form always gives the submit with null value. Is it possible for the code to work this way? Or should I use Javascript or @Html.DropdownListFor?