In my project, I'm developing so that the application works even if the user is disabled or unavailable. If JavaScript is not available, I load the page normally. If it is available, I load some of these pages in modal
so that the flow is more fluid.
To control the look of these pages, each view inherits the default layout of my application through the _viewstart.cshtml
file. What I would like is that when the page is loaded via ajax, do not use this layout, which is equivalent to this:
@{
Layout = null;
}
How can I achieve this (preferably without depending on extra variables, whether in the URL or via @ViewBag
)?