I am using ASP.NET MVC 5 in Visual Studio 2013 Community Edition. I wanted to create nested layout pages for my view. For example, the hierarchy is as follows:
_Layout.cshtml > Template1.cshtml > FinalPage.cshtml
But what I am confused about is how to load data on the page: e.g., Template1.cshtml
when I am loading the model and the controller calls FinalPage.cshtml
.
Will it load by default without any changes?