I have Ajax Form in my view:
@using (Ajax.BeginForm("SearchHuman", "Search", new AjaxOptions(){
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "result" }))
{
<div class="editor-field">
@DescriptionStrings.Lastname:
@Html.TextBox("LastName")
</div>
<div class="editor-field">
@DescriptionStrings.Firstname:
@Html.TextBox("Name")
</div>
//submit button
<input type="submit" value='Start Searching' />
//submit link
@Ajax.ActionLink("search", "OtherSearch", new{lastName ="",...}, new AjaxOptions()
{
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "tab"
})
}
I want to have submit button and the link for 2 different searches (in different databases) using only one form. But how to pass route values from the textboxes of the form into Ajax.ActionLink?
Thanks in advance!