If the data that you visualize in your layout is orthogonal to the data of your actual view (what it should be, or else you use layouts where you should use partial views), then imho is conceptually the most robust method to use a child action (i.e. using Html. Action) to display the data in the layout.
source share