Navigation using @RenderBody

1

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

My question is:

Assuming all our pages use the _Layout that is this @RenderBody

When browsing, does it just load the content in there, or does it reload _Layout again?

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

    
asked by anonymous 20.11.2014 / 12:25

1 answer

1

Yes, the page is "mounted" on the server and sent as a single page. All contents of _Layout and @RenderBody are sent to the client on each request. The run is similar to php or old asp.

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

    
20.11.2014 / 12:36