My _ViewStart sets Layout property. It worked fine untill I started to use child actions – in this case Layout is applied both for main action and for child. Is there any way to deny applying _ViewStart (or at least Layout) to child actions?
Share
It sounds like you need to make sure you child action renders a PartialView:
AKA
The code would look like so: