I’m using this overload:
@Ajax.ActionLink("Match", "Match", "User", new { userId = Model.userId, matchId = match.id }, new AjaxOptions { HttpMethod = "POST", Confirm = "test" }, new { })
(‘match’ is an instance variable within a foreach)
but neither POST nor my “test” confirm are working. I found another SO question stating it may be due to a JavaScript error on page elsewhere, but I have none according to FireBug.
Then I found this question which seems to be telling me I’m doing it correctly. I thought I was using the wrong overload, but can’t find a better match. What’s wrong?
Edit: The links are also being rendered /User/?userId=blah&matchId=blah, if that’s relevant
Make sure that you have added jquery unobtrusive ajax scripts on the page if you are using jquery otherwise you have to include microsoft ajax scripts on the page