AspNetCore.Docs/aspnetcore/tutorials/first-mvc-app/adding-view.md

37 lines
966 B
Markdown
Raw Normal View History

2016-12-17 14:54:31 +08:00
---
2017-07-01 07:47:15 +08:00
title: Adding a view
2016-10-29 01:35:15 +08:00
author: rick-anderson
description: Adding a view to a simple ASP.NET Core MVC app
2016-10-29 01:35:15 +08:00
manager: wpickett
2018-01-29 23:21:31 +08:00
ms.author: riande
ms.date: 03/04/2017
ms.prod: asp.net-core
2018-01-29 23:21:31 +08:00
ms.technology: aspnet
ms.topic: get-started-article
2016-10-29 01:35:15 +08:00
uid: tutorials/first-mvc-app/adding-view
---
2018-04-05 07:51:35 +08:00
[!INCLUDE [adding-view](../../includes/mvc-intro/adding_view1.md)]
2016-10-29 01:35:15 +08:00
* Right click on the *Views* folder, and then **Add > New Folder** and name the folder *HelloWorld*.
* Right click on the *Views/HelloWorld* folder, and then **Add > New Item**.
* In the **Add New Item - MvcMovie** dialog
* In the search box in the upper-right, enter *view*
2018-04-17 07:58:56 +08:00
* Tap **Razor View**
2016-10-29 01:35:15 +08:00
* In the **Name** box, change the name if necessary to *Index.cshtml*.
2016-10-29 01:35:15 +08:00
* Tap **Add**
![Add New Item dialog](adding-view/_static/add_view.png)
2016-10-29 01:35:15 +08:00
2018-04-05 07:51:35 +08:00
[!INCLUDE [adding-view22](../../includes/mvc-intro/adding_view2.md)]
2016-10-29 01:35:15 +08:00
2018-04-05 07:51:35 +08:00
> [!div class="step-by-step"]
> [Previous](adding-controller.md)
> [Next](adding-model.md)