SyntaxFix
Write A Post
Hire A Developer
Questions
You don't have to create an empty view for this.
In the controller:
if (Request.IsAjaxRequest()) return PartialView(); else return View();
returning a PartialViewResult will override the layout definition when rendering the respons.