ASP.NET MVC 3 (Razor) Ajax.ActionLink - What am i doing wrong? ASP.NET MVC 3 (Razor) Ajax.ActionLink - What am i doing wrong? ajax ajax

ASP.NET MVC 3 (Razor) Ajax.ActionLink - What am i doing wrong?


Make sure you have the unobtrusive AJAX javascript library included in your page.

<script src="<%=Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")%>" type="text/javascript"></script>


And for those using the Razor view engine...

<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>


You may also want to include the InsertionMode option in the AjaxOptions. I'm sure there's a default behavior if you exclude it but it's better to explicitly define it for things like this.