User1939747927 posted
Hi Everyone,
I have MVC view (let us call this the "MainView") that renders around 7-8 partial views.
The partial views are rendered on the page using the Html.RenderAction method, as opposed to RenderPartial.
This is because the action will retrieve its own data for the partial view.
Basically i have 7-8 partial views, each with its own data & logic, which i don't want on my Main View.
I have tried using Asyn Controler & async methods for all actions, including the Main View.. But this doesn't seem to work.
I.e. assume each Action takes (for the partial views) around 10 seconds.
The result is that loading the Main View takes around 70-80 seconds.
How can i ensure the partial views are rendered asyncrhronously.
I understand this would be difficult, cuz they are all writing to the same stream, hence this might not work.
If not what is the other solution?
Finally, the partial views (rendered by different actions) are all re-usable partial views - used on numerous other pages
Please help.
Thanks