From f9e9c44e2c89005dd77f062771b7cdaa50a86f2f Mon Sep 17 00:00:00 2001 From: danroth27 Date: Mon, 2 May 2016 15:11:15 -0700 Subject: [PATCH] Remove broken sample link on MVC layouts doc and general cleanup --- aspnet/mvc/views/layout.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/aspnet/mvc/views/layout.rst b/aspnet/mvc/views/layout.rst index 4d6b49bfb1..3c21b5b431 100644 --- a/aspnet/mvc/views/layout.rst +++ b/aspnet/mvc/views/layout.rst @@ -1,14 +1,13 @@ Layout ======= + By `Steve Smith`_ Views frequently share visual and programmatic elements. In this article, you'll learn how to use common layouts, share directives, and run common code before rendering views in your ASP.NET app. .. contents:: Sections - :local: - :depth: 1 - -`View sample files `_ + :local: + :depth: 1 What is a Layout ---------------- @@ -105,9 +104,9 @@ If you have code you need to run before every view, this should be placed in the A sample ``_ViewStart.cshtml`` file: -.. literalinclude:: ../../../common/samples/WebApplication1/src/WebApplication1/Views/_ViewStart.cshtml +.. literalinclude:: /../common/samples/WebApplication1/src/WebApplication1/Views/_ViewStart.cshtml :language: html The file above specifies that all views will use the ``_Layout.cshtml`` layout. -.. note:: Neither ``_ViewStart.cshtml`` nor ``_ViewImports.cshtml`` are placed in the ``/Views/Shared`` folder. The app-level versions of these files should be placed directly int he ``/Views`` folder. +.. note:: Neither ``_ViewStart.cshtml`` nor ``_ViewImports.cshtml`` are placed in the ``/Views/Shared`` folder. The app-level versions of these files should be placed directly in the ``/Views`` folder.