When I call a controller in this manner:
@Ajax.ActionLink("Clients", "ClientAccountsPartialView",
new {
entityCode = -1,
taxNumber = -1,
country = 1,
district = 1,
council = -1
},
new AjaxOptions {
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "SearchClientsID",
HttpMethod = "GET",
OnBegin = "onBegin",
OnComplete = "onComplete"
},
new
{
@class = "btn btn-default",
@onclick = "$('#SearchEntitiesModal').modal('hide'); $('#SearchClientsModal').modal('show')",
@style = "width:100%;",
@id="searchClientsButton"
})
However, I am in need of passing a JavaScript parameter. Does anyone have a solution for this?