[RESOLVED]Child Actions with Asynchronous calls

After much research I have found that MVC 5 does not support asynchronous calls in Child Actions which has created a major hurdle in my current project.  Does anyone know of a work-around for this issue?  I have two partial views inside of the layout which
both need to contain data fetched asynchronously, and one of them needs to push data.  Any assistance is greatly appreciated!

For Child Actions you need to use Ajax request. Ajax is the true Asynchronous call. Your Async & Await in MVC5 are not asynchronous to the user. They help you free up the server resources.

Make it synchronous by calling task.Result method. MVC 6 will support this. I submit this issue one year ago at codeplex,

https://aspnetwebstack.codeplex.com/workitem/1241

Leave a Reply