1

Whenever I click any nav link in Core MVC application the whole layout gets reloaded. This resets the active nav link. Is there any way to load only the @RenderBody() section without reloading the whole page.

I've already been through this answer but I have far too many views to make use of it. Is there any new way to do it in Core MVC. Any help is greatly appreciated, thanks

TripVik
  • 47
  • 8
  • _"This resets the active nav link"_ - what does that mean? Anyway, do you mean you want to turn your site into a Single Page Application or something like that, where you refresh the body with partial/API responses? – CodeCaster Oct 07 '19 at 09:56
  • Yes, something similar to what you mentioned – TripVik Oct 08 '19 at 11:30

1 Answers1

0

There's no new way I think. But why not save your active nav in RouteData like this: https://stackoverflow.com/a/20411015/5750143

Thanh Nguyen
  • 712
  • 6
  • 5