Articles → ASP .NET MVC → Show View Without Layout In MVCShow View Without Layout In MVCIn this article, we see how to show view without layout.Create A Project First of all create an asp.net MVC project and run the application. You see the following output.Click to EnlargeIn the preceding image, the menu is a part of the layout.Remove Layout From View In the view, add the following code@{ ViewBag.Title = "Contact"; Layout = null; }Now run the application again. You see the following outputClick to EnlargePosted By - Karan Gupta Posted On - Sunday, January 10, 2016 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
@{ ViewBag.Title = "Contact"; Layout = null; }
Query/Feedback