Implement an Ajax call using the tags data-* Implement an Ajax call using the tags data-* ajax ajax

Implement an Ajax call using the tags data-*


The answer from the comments (since no-one has added it):

<script src="~/lib/jquery-ajax-unobtrusive/jquery.unobtrusive-ajax.j‌​s"></script><!-- the ~ is to symbolize your project's wwwroot folder

Add the above to your master layout with all of your other scripts (_Layout.cshtml by default).

What this does is include the jQuery unobtrusive ajax file into all of your pages, so that the main script that does all the work is included.

Before doing this, make sure you have installed the package Microsoft.Jquery.Unobtrusive.Ajax