Passing SelectedValue from HTML.DropDownList to View
Hi all,
how to pass value from HTML.DropDownList to AJAX Action Link Helpers???
i have this code, if i explicitly insert value to territryID..the View is populate correctly
Code:
@using (Html.BeginForm())
{
@: Location @Html.DropDownList("territryID", (SelectList)ViewBag.Territory, "choose one")
@Ajax.ActionLink(
"ok",
"Info", new { territryID = ????},
new AjaxOptions
{
InsertionMode = InsertionMode.Replace,
HttpMethod = "POST",
UpdateTargetId = "post1"
})
<div id="post1">
</div>
}
thx,
erick