It's my first time using "select-option" tags, so please help me with this.
Here is my problem: I have created this for exporting data into different type of files (xls, doc, etc.):
<select class="btn btn-xs">
<option selected>Export to....</option>
<option>@Html.ActionLink("Export to Word", "ExportToWord", "Stock", FormMethod.Post)</option>
<option>@Html.ActionLink("Export to Excel", "Excel", "Stock", FormMethod.Post)</option>
</select>
it allows me to select the type of export I choose, but it does not export the data. So I researched a little but I did not found something to help me.
Here is an example: Is there anyway to make actionlinks work inside a dropdown or the other from this link: using href links inside <option> tag. But I don't understand if all the code is inside the same controller how to do this?