In order to use the layout, follow these steps:
- Get the name of the layout file: This information should be made available in _ViewStart.cshtml. By convention, the names of all shared files will start with an underscore, and this file is located directly under the Views folder.
- Create the layout file: By convention, the name of the file is _Layout.cshtml and it will be located in the Shared folder. All shared content, such as partial views, will also be available here. Partial views will be discussed later in this chapter.
- Create the content view file: This view file is almost the same as the view files that we created earlier, with only one difference; only page-specific content will be available in this file, ...