I have a View that has a ‘intermediate’ layout, which in turn has a ‘base’ layout.
This creates a full web page. However, I want to do partial page updates using Ajax, but to be able to do that at two levels:
- The View level with no layout – easy with PartialView()
- The View with the intermediate layout but not the ‘base’ layout.
Is that possible?
In the controller action that is supposed to do case 2) you could pass to the view some information in the view model indicating this:
In the view: