MVC and Asynchronous Calls

When we want to issue requests to controller actions from a view, some sections without having to load the whole page and at the same time experience page flickering. The solution to this problem is to make asynchronous request. You can do this with MVC Ajax Helper and JQuery.

First, you have to make sure that MVC project has a bundle script for your JQuery version. You should have a code similar to this:

bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js"));

Then in the _Layout view under the shared folder should have a code like this:


These are a part of the bundling and minification of ASP.NET MVC.

To learn more about this tutorial, read this blog:

Leave a Reply

Your email address will not be published. Required fields are marked *