I need to pass the value of on of the selected item in the list to the action in ajaxy way:
View:
<%= Html.DropDownList("ApplicationColumns", applicationColumns, new { @style = "width: 200px;" })%>
<%= Ajax.ActionLink("AddColumnToTrim", "AddColumnToTrim", new { columnName = ??? }, new AjaxOptions() { UpdateTargetId = "columnsDiv" })%>
<div id="columnsDiv"></div>
I'm doing this cause I cannot post the whole form and just need to execute some logic depending on the chosen item and display it in partial view. How can I pass the value(or selected SelectListItem) of the selected item of the DropDownList to my action please ? Thank you.