我有一个DropDownList,我想将所选值传递给ActionLink。如何提取所选值?
@Html.DropDownList( "DataCollectionsList", (SelectList)ViewBag.AvailableDataCollections, new { onChange = "runAlert();"} )
@Ajax.ActionLink( "test123", "AddDataCollection", new { reportId = Model.ReportId, dataCollectionId = **INSERT SELECTED DROPDOWN VALUE HERE** }, new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "test123" } )