I am new to Asp.net and currently I want to pass some parameter (selected user Id list) to the controller when user click the action link button, below is the action link code,
@Html.ActionLink("Edit Selected", "EditSelected", new { selectedUserIds = @Model.GetSelectedUserIds() })
The action in the controller is as below
// GET:
public async Task<ActionResult> EditSelected(List<string> selectedUserIds)
{
But I found that the ActionLink is just compile when page is loaded and the selectedUserIds parameter will not be updated when I click this link button, so how can I handle this?