Navigation using @Renderbody

Asked

Viewed 124 times

1

When we use @RenderBody, the other pages used with _Layout, is rendered only in there, correct?

My question is:

Assuming all our pages use the _Layout what’s that @RenderBody

When browsing, it only loads the content in there or, it reloads the _Layout again?

It reloads all the . js and css files found on _Layout?

1 answer

1

Yes, the entire page is "mounted" on the server and sent as a single page. All contents of _Layout and @RenderBody is sent to the client at each request. The operation is similar to php or old Asp includes.

To achieve this page effect that never has refresh in its entirety you will need a SPA (Single Page Application) as Angular, Backbone, Ember.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.