Monday, June 3, 2013

rendering order in nested layout ....

1. Content view
2. Nested layout
3. Wrapper (main) layout
Previous sections demonstrated that Razor views that leverage layouts render the content view first, followed by the layout (which injects the output from the content view).Since nested layouts effectively act as both layouts and content views, they simply add another layer to the mix. Thus, the requested content view is rendered first, which passes its output to the nested layout, which subsequently wraps the original content
view with itself, and then passes its output to the final main layout.

No comments:

Post a Comment